▲ 2885 ▼ logical (lemmy.world) submitted 3 years ago by lukenamop@lemmy.world [M] to c/nathanwpyle@lemmy.world 467 comments fedilink hide all child comments
[–] randint@lemm.ee 6 points 3 years ago (1 child) You can just assign digits to ten and eleven? permalink fedilink source parent hideshow 2 child comments replies: [–] Killing_Spark@feddit.de 7 points 3 years ago* Yep. In computer science you sometimes need to calculate with hexadecimal numbers where 10-15 are the letters A-F. You just use another factor for scaling "easily". In hexadecimal 10 is 16 in decimal. So if you do C * 10 it's C0 but that is 192 in decimal (12 * 16, remember the base is 16). Whats cool though is that (all hexadecimal): 10 / 2 = 8 10 is 2 to the power of 4 which means 10 is divisible by 2 4 times. Similarly (and arguably even cooler) with a base 12 system 10 is divisible by 2 AND 3! 10 / 3 = 4 10 / 2 = 6 permalink fedilink source parent
[–] Killing_Spark@feddit.de 7 points 3 years ago* Yep. In computer science you sometimes need to calculate with hexadecimal numbers where 10-15 are the letters A-F. You just use another factor for scaling "easily". In hexadecimal 10 is 16 in decimal. So if you do C * 10 it's C0 but that is 192 in decimal (12 * 16, remember the base is 16). Whats cool though is that (all hexadecimal): 10 / 2 = 8 10 is 2 to the power of 4 which means 10 is divisible by 2 4 times. Similarly (and arguably even cooler) with a base 12 system 10 is divisible by 2 AND 3! 10 / 3 = 4 10 / 2 = 6 permalink fedilink source parent