Re: [Flashcoders] Floating point pain

2007-06-05 Thread Glen Pike
Parse it as a string then turn it into a number again :) Merrill, Jason wrote: If I have a floating point value, say, 25.81 and want to separate the first two places beyond the decimal point (.81) from 25.81, I thought simple subtration would work, but it seems floating points are even less

RE: [Flashcoders] Floating point pain

2007-06-05 Thread Merrill, Jason
to:[EMAIL PROTECTED] On Behalf >>Of Glen Pike >>Sent: Tuesday, June 05, 2007 4:18 PM >>To: flashcoders@chattyfig.figleaf.com >>Subject: Re: [Flashcoders] Floating point pain >> >>Parse it as a string then turn it into a number again :) >> >> >>

Re: [Flashcoders] Floating point pain

2007-06-05 Thread Mark Winterhalder
On 6/5/07, Merrill, Jason <[EMAIL PROTECTED]> wrote: Thanks, yeah, I thought of that. I was hoping there was some unknown Math function I had missed. The only other one I can think of is modulo. It would be slightly more readable (IMHO) and fit into one line, but would still require the Math.r