[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
How do I decimal to Octal?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /sci/ - Science & Math

9 KB, 267x181
Hey guys, I figured out how to calculate a decimal to octal however I stumbled upon an issue.

Once I have a number with no residual value I get zeroes which means I get the wrong idea I guess.

So can you guys explain it to me with a number that has no remainder, let's say 72?
>>
>>7811006
nein
>>
>>7811017
Please i'm fucked at my test tomorrow, it's the only thing I fail to understand
>>
bump, I am curious too
pls explain
>>
This might not be the most efficient way but:

72/8 = 9, no remainder.
9/8 = 1 with remainder of 1.
So:
1x64, 1x8, 0x1, for 110 in octal.

If there is no residual there must be at least 1 zero.
>>
>>7811046
Holy fuck you saved my ass I understand, thanks man.