Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Oct 1997 00:14:21 BST
From:      Michael Ryan <mike@NetworX.ie>
To:        FreeBSD Bugs <bugs@freebsd.org>
Subject:   Rounding up is -odd-
Message-ID:  <ECS9710180021A@NetworX.ie>

next in thread | raw e-mail | index | archive | help
Howdy,

Why does
	printf "%1.2f\n" 7.005
produce
	7.00
while
	printf "%1.2f\n" 8.005
produces
	8.01
?

Number from 8.005 to 15.005 and 32.005 to 62.005 round up,
while others in this range don't!


Bye,
Mike
<mike@NetworX.ie>
---






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ECS9710180021A>