[mredkj.com]
[NumberFormat]
Examples using Number Format v1.5.0
Want to load this page by itself? (full window)
or
Want the frames back?(load frames)
The following chart shows various settings and the results.
It also compares the results to hardcoded expected results, then passes or fails the test.
Remember, any time an actual result is shown, the function being called
is wrapped in document.writeln() to display it to the page.
Known failures:
- Netscape 4.7 will fail on lines 21 and 25, because of a missing leading zero.
-
Lines 28 and 31 will fail in any browser, because of a limitation in floating-point math.
Refer to JavaScript Math Errors in Netscape & Internet Explorer.
There are some potential workarounds for the NumberFormat code, but I need to test them.
-
Line 34 will fail in any browser because of how JavaScript refers to very small numbers.
JavaScript uses notation like 1.7e-8 for 0.000000017.
In my NumberFormat logic, I take out all negative signs temporarily,
so the small number is inversed.
v1.0.x Examples Using v1.5.0
Each example below starts off with the constructor's defaults.
Then it accumulates whatever changes occur in that row.
Although some of the changes are redundant.