[thelist] JavaScript: trim function?

Tom Dell'Aringa pixelmech at yahoo.com
Fri Nov 14 10:45:05 CST 2003

--- Hassan Schroeder <hassan at webtuitive.com> wrote:
> > Tom Dell'Aringa wrote:
> > I have a number like this: 4234.343899238
> > I want to trim that to just 4234.34. Anyone have a handy function
> > for this before I re-create the wheel?
> Math.round() is a built-in JavaScript function ...

Which gives me 4234...i need the two decimal places...


http://www.pixelmech.com/ :: Web Development Services
http://www.DMXzone.com/ :: JavaScript Author / Every Friday!
http://www.thywordistruth.net/ :: Eternal Life

"I'll ho ho and ha ha you!" (Daffy Duck)

More information about the thelist mailing list