Re: Documentation and output of pretty_print()
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Sep 06, 2004
- 484 views
On Sun, 05 Sep 2004 13:40:56 +0200, Juergen Luethje <j.lue at gmx.de> wrote: >Hi Rob and all, > >I accidently discoverd something concerning pretty_print(), You were using pretty_print? You TRAITOR! ) >that is ALSO shown by the following code snippet: >
include ppp.e atom a ppOpt({pp_IntFmt,"#%x ('integer')"}) ppOpt({pp_FltFmt,"#%x ('floating-point number')"}) a = power(2,30) - 1 -- 30 bit pp(a) a = power(2,30) -- 31 bit pp(a)
> >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. I didn't realise ppp.e would do this as well, I'll mention it somewhere, thanks > >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? Ditto, I just use integer(), I suppose that could be changed (but not right now). Pete