I'm sorry i just saw, that you wanted to round things to 10 cents... so you have to change it to:
<cfset price = round(price * 10) / 10> Gert Greetings / Grüsse Gert Franz Customer Care Railo Technologies GmbH [EMAIL PROTECTED] www.railo.ch Join our Mailing List / Treten Sie unserer Mailingliste bei: deutsch: http://de.groups.yahoo.com/group/railo/ english: http://groups.yahoo.com/group/railo_talk/ Gert Franz schrieb: > Hi Seamus, > > you could do it this way: > > <cfset price = round(price * 20) / 20> > > this results in the following: > > 1.14 1.15 > 6.02 6.00 > 6.06 6.05 > 6.09 6.10 > 6.01 6.00 > > > > Greetings / Grüsse > Gert Franz > Customer Care > Railo Technologies GmbH > [EMAIL PROTECTED] > www.railo.ch > > Join our Mailing List / Treten Sie unserer Mailingliste bei: > deutsch: http://de.groups.yahoo.com/group/railo/ > english: http://groups.yahoo.com/group/railo_talk/ > > > > Seamus Campbell schrieb: > >> Hi >> >> I have some prices which I have to display as >> price >> web_price = price * .9 >> web_os_price = price * .9 * 10 / 11 >> >> This results in some web-prices being eg $6.57 >> I want to round up 6.05 - 6.09 to 6.10 >> aand round down 6.01 - 6.04 to 6.00 >> >> Is there any reasonably easy way to do this? >> >> Many thanks >> >> Seamus >> >> >> Seamus Campbell Boldacious WebDesign >> http://www.boldacious.com ~~~~ [EMAIL PROTECTED] >> ph 0410 609 267 >> >> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256487 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

