Check the docs for round, fix, ceiling, and int.  They all work with
integers, so if you want to maintain decimal places you will have to
multiply before and divide after manipulating with these functions.

100.9 = round(100.867*10)/10

If this is for outputting only, also look at the display and formatting
section of the CF functions where you will find decimalformat, dollarformat,
numberformat, etc.

Dan

-----Original Message-----
From: Stewart McGowan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 06, 2000 9:42 AM
To: '[EMAIL PROTECTED]'
Subject: Rounding of numbers


Sorry for the noddy nature of the question but its 5.30 i've had a tooth out
today and i'm getting no sympathy :)

how do i round a number i've got as a result of a piece of arithmatic?
Thanks as always

Stew
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to