Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/cdaeea76d00d969781610d361f9ff785 to your computer and use it in GitHub Desktop.
Save trycf/cdaeea76d00d969781610d361f9ff785 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
v = "00012.00006.00003.0011";
lv = "06.000.7728.0100.100";
//dump(toNumeric(v));
//dump(toNumeric(lv));
_lv = REReplace( lv, "[^\d]", "", "all" )
_v = REReplace( v, "[^\d]", "", "all" )
dump(_v);
dump(_lv);
dump(toNumeric(_v));
dump(toNumeric(_lv));
dump(_lv gt _v)
dump(lv gt _v)
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment