[Nickle] printf/scanf for rationals?

Keith Packard keithp at keithp.com
Sat Dec 24 10:22:52 PST 2005

On Sat, 2005-12-24 at 01:46 -0800, Bart Massey wrote:
> Unfortunately, the output of printf("%.-g", 1/3) is
> 0.{3}, which can't be read back in by current scanf() at all
> (as near as I can tell).  I think it probably *should*...

A trivial fix; the code just needed to allow for {} in the general
number format.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/nickle/attachments/20051224/aeee6e3b/attachment.pgp

More information about the Nickle mailing list