Documentation and output of pretty_print()
- Posted by "Juergen Luethje" <j.lue at gmx.de> Sep 05, 2004
- 522 views
Hi Rob and all, I accidently discoverd something concerning pretty_print(), that is shown by the following code snippet:
include misc.e atom a a = power(2,30) - 1 -- 30 bit pretty_print(1, a, {0,3,1,78,"#%x ('integer')", "#%x ('floating-point number')"}) a = power(2,30) -- 31 bit pretty_print(1, a, {0,3,1,78,"#%x ('integer')", "#%x ('floating-point number')"})
a) Options #5 and #6 can not only take format strings, but those strings can contain additional text, like in printf(). Very nice! This should be documented, I certainly had used it before, if I had known it. b) Integer values > 30 bit seem to be treated as floating-point numbers. This is somehow confusing for me. Can this be changed without drawbacks? Regards, Juergen -- A: Because it considerably reduces the readability of the text. Q: Why? A: Top posting. Q: What is annoying in e-mail and news?