Is it a conscious choice that %F doesn't honor the minus flag?
| > sscanf("\0\0\0\0\x29\xf0\x3c\x41","%8F",x),x; | Result: 0.000000 | > sscanf("\0\0\0\0\x29\xf0\x3c\x41","%-8F",x),x; | Result: 0.000000 | > sscanf(reverse("\0\0\0\0\x29\xf0\x3c\x41"),"%8F",x),x; | Result: 1896489.000000
| > sprintf("%8F",1896489.0); | Result: "A<ð)\0\0\0\0" | > sprintf("%-8F",1896489.0); | Result: "A<ð)\0\0\0\0"
It makes it a bit unnecessary difficult to read binary floats produced by Intel machines.
Hardly.
/ Johan Sundström (folkskådare)
Previous text:
2003-03-27 10:07: Subject: %-8F
Is it a conscious choice that %F doesn't honor the minus flag?
| > sscanf("\0\0\0\0\x29\xf0\x3c\x41","%8F",x),x; | Result: 0.000000 | > sscanf("\0\0\0\0\x29\xf0\x3c\x41","%-8F",x),x; | Result: 0.000000 | > sscanf(reverse("\0\0\0\0\x29\xf0\x3c\x41"),"%8F",x),x; | Result: 1896489.000000
| > sprintf("%8F",1896489.0); | Result: "A<ð)\0\0\0\0" | > sprintf("%-8F",1896489.0); | Result: "A<ð)\0\0\0\0"
It makes it a bit unnecessary difficult to read binary floats produced by Intel machines.
/ Mirar
pike-devel@lists.lysator.liu.se