I should say that they're not floats...I was just saying that they're
decimals.

At most they'll be 3 places (for 1/8 stuff).

So common values might be:

1.5
7.33
2.125

etc.

I need to convert those to

1 1/2
7 1/3
2 1/8



<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Monday, August 14, 2006 2:52 PM
To: CF-Talk
Subject: Re: UDF to convert decimals to fractions?


Far easier to convert them from fraction to float than from float to
fraction.  Not to mention storing fractions is more precise.  So i'd
investigate a way to do that if at all possible, rather than the
converse.  However, it'd be pretty simple to write a UDF to convert
common floats back into fractions.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:249756
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