May 28, 2002 #1 busman66 MIS May 10, 2002 5 GB Please could somebody tell me how to round up a floating point number to two decimal places.
May 28, 2002 #2 amhunt Technical User Jun 5, 2001 6 US For positive numbers: double roundedResult,x=12.345; roundedResult= floor(x * 100.0 + 0.5) / 100.0; -mark- Upvote 0 Downvote
For positive numbers: double roundedResult,x=12.345; roundedResult= floor(x * 100.0 + 0.5) / 100.0; -mark-