Hello.

In our application we are displaying many floating point numbers. 
Currently I'm using the javascript function toPrecision() to format 
them, but it doesn't do a very good job with numbers like 3.0e-6:

3.0e-6.toPrecision(4) yields 0.000003000

which isn't nice to look at.

Does anyone know of a better way to format numbers? Is there a simple 
way using static qooxdoo functions?

Thanks,

jdl

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to