pf » Floor Function in ColdFusion is Int

Floor Function in ColdFusion is Int

coldfusion

Those of you coming from programming languages that have a floor function, may be hard pressed to find it in ColdFusion - that's because it's called Int.

The Int function will take in a floating point number chop off the decimal part, leaving you with just the integer part.

For example:

#Int(5.2)# = 5
#Int(2.9)# = 2


Related Entries
This entry was:

Trackback Address: 634/880CEEA6AE5334013D68392B60446B48



  



Spell Checker by Foundeo





Subscribe to my RSS Feed: solosub RSS
Tags