Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save trycf/2454aee7df60d1cf2234080f8f2d9673 to your computer and use it in GitHub Desktop.

Select an option

Save trycf/2454aee7df60d1cf2234080f8f2d9673 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfset x = Floor((0.29 *100) + 0.01)>
<cfset a = 0.29 * 100>
<cfset y = Int(x)>
<cfoutput>x=#x#</cfoutput>
<br>
<cfoutput>a=#a#</cfoutput>
<br>
<cfoutput>y=#y#</cfoutput>
<br>
<cfoutput>#IsValid("integer", a)#</cfoutput>
<br>
<cfoutput>#IsValid("integer", 29)#</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment