Around 21 o'clock on Mar 6, Mike Haertel wrote:
> Trailing zeroes whenever I use printf() to print a rational:
> 
> > printf("%r", 1/3)
> 0.{3}0
>      ^
Nope, your format isn't including a newline so you're seeing the value 
immediately followed by the return value from printf (which is 0).
Try either:
> printf ("%r", 1/3);
0.{3}> 
or
> printf ("%r\n", 1/3)
0.{3}
0
> 
-keith