- deathnote00Straw Hat Pirate
- Posts : 34
Points : 101700
Coins : 3864
Join date : 2013-04-29
Warning Level :
Programming Tutorial: How to Subtract Octal Numbers
Sat May 04, 2013 7:26 pm
Now let try Subtracting number this time to subtract is easy as subtracting a whole numbers
Rules:
1-1= 0
2-1= 1
7-6 =1
5-7 = (just borrow form the next digit if there any, and i dont have any digit to borrowed for the answer would be -2)
Note:Because 5 is cannot be divided by 6 we need to borrowed 1 from 6 so it become 5, so 5 will become 13 how do i get 13 this is how (5+8=13)
Rules:
1-1= 0
2-1= 1
7-6 =1
5-7 = (just borrow form the next digit if there any, and i dont have any digit to borrowed for the answer would be -2)
- Code:
Example:
765
-136
-------
627
Note:Because 5 is cannot be divided by 6 we need to borrowed 1 from 6 so it become 5, so 5 will become 13 how do i get 13 this is how (5+8=13)
- XFalconDeath Note Holder
- Posts : 432
Points : 106676
Coins : 4800
Join date : 2013-04-12
Warning Level :
Member's Awards :
Re: Programming Tutorial: How to Subtract Octal Numbers
Sun May 05, 2013 9:31 pm
Thanks for all this programming tutorials, but, don't you think you should be starting from the very start? Just a suggestion.
- deathnote00Straw Hat Pirate
- Posts : 34
Points : 101700
Coins : 3864
Join date : 2013-04-29
Warning Level :
Re: Programming Tutorial: How to Subtract Octal Numbers
Mon May 06, 2013 12:18 pm
This is the very start this is not really a programming tutorial but a logic Funtamentals for logic building that every programmer should haveXFalcon wrote:Thanks for all this programming tutorials, but, don't you think you should be starting from the very start? Just a suggestion.
Permissions in this forum:
You cannot reply to topics in this forum