I should have noted in my original message that the numbers I am working
with are coming from a <cfquery> to a database. The db fields are number
fields. They need to be number fields so that I can do some math with them.
Paul
> -----Original Message-----
> From: Paul Sinclair [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 31, 2000 10:52 AM
> To: CF-Talk
> Subject: String manip: Using fractions rather than decimals for output
>
>
> I want to output a number using fractions rather than decimals.
> I.e., 1 1/2
> not 1.5; 1 1/4 not 1.25; etc. Is there an easy way to do this?
>
> I've been resorting to a bunch of <cfif> statements to determine if the
> right side of the decimal point is something other than .00. If so, I have
> to do a series of string manipulation exercises to get the left
> side of the
> decimal point and then append the proper fraction to the right side. It's
> getting to be a real pain.
>
> I'm hoping there is some simple function that I haven't found yet?
>
> Paul Sinclair
>
>
> ------------------------------------------------------------------
> ------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
>
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]