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.round, * 100, / 100 thing due to the imprecision of floats. var fract = Math.round(( val % 1 ) * 100) / 100; Mark _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com