May 28, 2002 #1 busman66 MIS Joined May 10, 2002 Messages 5 Location 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 Joined Jun 5, 2001 Messages 6 Location 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-