I wrote this before %a was introduced. But %a produces scientific notation, whereas the above doesn't.
| [reply] [d/l] [select] |
> But %a produces scientific notation, whereas the above doesn't.
my issue with %a is rather that it's called "hex float" but the exponent is decimal ... LOL.
I'm happy that it exists anyway, since different builds can have other floats configured, plattforms have various endianness too.
Furthermore it's a valid number format in Perl.
DB<18> say 0x1p+10 - 1
1023
| [reply] [d/l] |
0.1
= 0.00011001100110011001100110011001100110011001100110011010
____
= 0.00011
| [reply] [d/l] |