I'm not entierly convinced about the need for this, but perhaps it could be usefull (I recently had to poke at some x86 assembler with tasm, that's why I ask).
Would it be possible to add binary number representation to pike? That is [0-9]* - dec 0[0-7]* - oct 0x[0-9A-Fa-f]* - hex [01]*b - binary
I don't really need it (it's easy enough to convert binary to hex in head) but perhaps it does have som use for the base convertingly challanged?
Would it be possible to add binary number representation to pike? That is [0-9]* - dec 0[0-7]* - oct 0x[0-9A-Fa-f]* - hex [01]*b - binary
Binary constants can already be written with the syntax:
0b[01]*
0b10101010101011111;
Result: 87391
/ Henrik Grubbström (Lysator)
Previous text:
2002-11-11 16:04: Subject: binary number representation
I'm not entierly convinced about the need for this, but perhaps it could be usefull (I recently had to poke at some x86 assembler with tasm, that's why I ask).
Would it be possible to add binary number representation to pike? That is [0-9]* - dec 0[0-7]* - oct 0x[0-9A-Fa-f]* - hex [01]*b - binary
I don't really need it (it's easy enough to convert binary to hex in head) but perhaps it does have som use for the base convertingly challanged?
/ Peter Lundqvist (disjunkt)
0b11;
(1) Result: 3
/ Martin Nilsson (Fake Build Master)
Previous text:
2002-11-11 16:04: Subject: binary number representation
I'm not entierly convinced about the need for this, but perhaps it could be usefull (I recently had to poke at some x86 assembler with tasm, that's why I ask).
Would it be possible to add binary number representation to pike? That is [0-9]* - dec 0[0-7]* - oct 0x[0-9A-Fa-f]* - hex [01]*b - binary
I don't really need it (it's easy enough to convert binary to hex in head) but perhaps it does have som use for the base convertingly challanged?
/ Peter Lundqvist (disjunkt)
pike-devel@lists.lysator.liu.se