Rick -
 
Use the NINT like this:
 
SET V vTest = ((NINT((.vNUMBER * 100)))/100)
 
Basically you multiply your number buy 100 then round it then divid that result by 100.  If you want it to be to 3 decimal places, use 1000 instead of 100.
 
Sami
 
-----------------------------------------------------------------
Sami Aaron
Software Management Specialists
19312 W 63rd Terr
Shawnee KS  66218
mailto:[EMAIL PROTECTED]
913-915-1971
 
----- Original Message -----
Sent: Saturday, February 07, 2004 2:18 PM
Subject: [RBASE-L] - Is The ROUND Function Available in R:Base v6.1 (MS-DOS)?

  Is the ROUND function available in R:Base v6.1 (MS-DOS)?
 
  If not, then does anyone have a UDF that will round numbers the way that the ROUND function does in R:Base v6.5++  (MS-DOS)?
 
EXAMPLE:
 
  SET VAR vNUMBER REAL = 1.4567
  SET VAR vROUND = (ROUND(.vNUMBER, 2))
 
  vROUND WILL EQUAL  1.46
 
 
  Thank you in advance for your help.
 
 
Regards,
 
Rick Brown
 

Reply via email to