Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"new" rounding function.
#7
Aga, I'll have to check your solution out more carefully. However, what I usually do is scale my numbers to be rounded first, and then divide the result to re-scale to the number of decimals that I need for output. I have found that it's good practice to keep numbers as whole numbers internal to the program with implied decimals.
*****
Reply


Messages In This Thread
"new" rounding function. - by Agamemnus - 01-30-2004, 12:06 AM
"new" rounding function. - by oracle - 01-30-2004, 05:20 AM
"new" rounding function. - by Moneo - 02-01-2004, 05:27 AM
"new" rounding function. - by Agamemnus - 02-01-2004, 08:54 PM
"new" rounding function. - by Plasma - 02-01-2004, 11:08 PM
"new" rounding function. - by Agamemnus - 02-02-2004, 01:53 AM
"new" rounding function. - by Moneo - 02-02-2004, 09:02 AM
"new" rounding function. - by Agamemnus - 02-02-2004, 09:35 AM
"new" rounding function. - by Moneo - 02-04-2004, 09:48 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)