Getting The Decimal Part Of A Number In ColdFusion

<!--- Test the ColdFusion regular expression method. --->
<cftimer
	type="OUTLINE"
	label="Partial Math Method And RegEx">
 
	<cfloop
		index="intI"
		from="1"
		to="1000"
		step="1">
 
		<!---
			Get a random decimal value to make sure
			that ColdFusion is not just optimizing
			the compiled code.
		--->
		<cfset intDecimal = GetDecimal(
			"1." &
			RandRange( 1, 9 )
			) />
 
	</cfloop>
 
</cftimer>
 
 
<!--- Test the decimal-delimited-list method. --->
<cftimer
	type="OUTLINE"
	label="Delimited List Method">
 
	<cfloop
		index="intI"
		from="1"
		to="1000"
		step="1">
 
		<!---
			Get a random decimal value to make sure
			that ColdFusion is not just optimizing
			the compiled code.
		--->
		<cfset intDecimal = GetDecimal2(
			"1." &
			RandRange( 1, 9 )
			) />
 
	</cfloop>
 
</cftimer>

For Cut-and-Paste