Exploring ColdFusion InputBaseN() And FormatBaseN() Functions

<!--- Loop over BIT values. --->
<cfloop
	index="strBits"
	list="0:1:10:11:100:110:111:1000:1100:1110:1111"
	delimiters=":">
 
	<!---
		Convert the bits to integers. Bits are in
		base 2 and we are converting to base 10 (our
		standard number system).
	--->
	#strBits# : #InputBaseN( strBits, 2 )#<br />
 
</cfloop>

For Cut-and-Paste