Skip to main content
Inspiring
May 22, 2008
Question

NumberFormat Rounding

  • May 22, 2008
  • 1 reply
  • 310 views
I am trying to get the age of a person. I get the age plus all of the numbers after the decimal

When I numberformat it is rounding the number up. so if they are actually 7 it rounds it to 8. No good in my world.
I simply want the number in front of the decimal and igore thre rest.

<cfset foo=#numberformat(age,"9")#>


Suggestions?
This topic has been closed for replies.

1 reply

Inspiring
May 22, 2008
int()
Inspiring
May 22, 2008
Thank you!