> Seb > > That worked, but there is one problem, is there a way to simplify to a > whole and a fraction. > > example 11.5 = 23/2 = 11 1/2
You could handle this either at the beginning or at the end; for efficiency, I'd recommend the beginning, as your loop will be shorter... <cfset input = 11.5 /> <cfset whole = Int(input) /><!--- Gives a whole number of 11 ---> <cfset decimal = input - whole /><!--- Gives a decimal of 0.5 ---> ....and then display the whole numer with the fraction at the end. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315876 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4