Hey Mark, how about this:
<cfscript> VARIABLES.someVar = "3500000"; VARIABLES.digit2 = VARIABLES.someVar / 1024 / 1024; VARIABLES.ImageMaxFileSize1 = NumberFormat(VARIABLES.digit2, ",._") & "mb"; writeOutput( VARIABLES.ImageMaxFileSize1 ); </cfscript> Mingo. Mark Leder wrote: > What am I missing here? I want to set a simple number format function but I > can't get the decimal in the right place, tried forcing the integer to the > left, tried dashes, single quotes around the mask, etc. Nothing works. > > <cfscript> > VARIABLES.someVar = "3500000" > VARIABLES.digit2 = Left(VARIABLES.someVar, 2); > VARIABLES.ImageMaxFileSize1 = "#NumberFormat(VARIABLES.digit2, "L.9")#mb"; > > </cfscript> > > <cfoutput>#VARIABLES.ImageMaxFileSize1#</cfoutput> > > I want the output to be "3.5mb" > > Thanks, > Mark > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234237 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54