Created
November 13, 2018 23:03
-
-
Save trycf/12b6b0390ed06aeeb15847a824e7cc6f 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> | |
img=imageRead("https://console.staging-us.com/olmsDATA/ACCOUNT/133/TEMP/asdfa131331113081958.jpg"); | |
//imageScaleToFit(img,281,"","highestQuality"); | |
imageCrop(img,11, 0, 270, 217.61); | |
cfimage(action="writeToBrowser", source=img); | |
</cfscript> | |
<cfset FullNumber = 3.5432267> | |
<!--- round to 2 decimal places ---> | |
<cfset RoundedNumber = FullNumber * 100> | |
<cfset RoundedNumber = Round(RoundedNumber )><cfoutput>#RoundedNumber#</cfoutput> | |
<cfset RoundedNumber = RoundedNumber / 100> | |
<cfoutput>#numberformat(1.49)#</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment