Conversation
Edited 1 year ago
somehow generating binary numbers backwards
2
0
0
@kirby technology unlocked: endianness
0
0
2
@kirby in reality this isn't what endianness actually does
1
0
1
@menherahair i am doing a bit of thinking up in the old noggin and coming to the same conclusions you are right now
0
0
0
@kirby what does this even mean?
1
0
0
@Cyrillic i've got this algorithm that tries to manually print out a binary representation of a decimal number but it's generating the binary digits backwards
1
0
1
@kirby oh yeah you need to flip them because the division remainders are the smallest binary digits, not the largest digits.
1
0
1
@Cyrillic so I'm generating little endian numbers out of the gate?
0
0
1