Re: Documentation and output of pretty_print()

new topic     » goto parent     » topic index » view thread      » older message » newer message

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! blink)
>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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu