[LCP]Rounding questions

Vincent Penquerc'h Vincent.Penquerch at artworks.co.uk
Thu Sep 5 20:46:06 UTC 2002


> That returns "390.000000", and is similar (but not exactly 
> the same) to
> what I was doing before that had a strange bug (apart from 
> the fact that
> that would have to be modified to work with negative numbers).

Really ? I had a quick thought about it, then realized that it
was fine. You want the nearest number to the one you give, right ?
Now that I think of it, it would probably fail for large numbers,
as the addition of 0.5 to it would be NOP.

-- 
Vincent Penquerc'h 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/linuxcprogramming/attachments/20020905/a0e6b4a6/attachment.htm 


More information about the linuxCprogramming mailing list