Created
March 23, 2022 20:39
-
-
Save trycf/deb8aa091430bfe82c15717a619e674b to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
money = 17.25; | |
dump(money); | |
cents = JavaCast("integer", money * 100); | |
dump(cents); | |
dump (isValid('integer', money)); | |
dump (isValid('integer', cents)); | |
money = 17.10; | |
dump(money); | |
cents = JavaCast("integer", money * 100); | |
dump(cents); | |
dump (isValid('integer', money)); | |
dump (isValid('integer', cents)); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment