What would be the best way to add a decimal point in front of number, say 20 to 
.20?

<cfset myNum = "20">
<cfset newNum = "." & myNum>
<cfoutput>#newNum#</cfoutput>

Is this ok?  If I need to do calculations will I have issues with newNum 
because it's a string?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325838
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to