in reply to Re^2: A philosophical pondering concerning hexes
in thread A philosophical pondering concerning hexes
So, you want something like this?
input | oct result | Comment |
107 | 71 | Octal |
108 | 108 | Decimal |
109 | 109 | Decimal |
10a | 266 | Hexadecimal |
10f | 271 | Hexadecimal |
10g | 8 | Octal, ignoring 'g' |
Does that seem anyway sensible or useful to you? Or perhaps oct 108 should return 89 (because it's base 9?). And should oct 45 be 29 (because it's base 6)?.
Abigail
In Section
Meditations