[whatwg] Maintaining unrounded values in forms

Mark Stacey mstacey at teknatic.com
Wed Nov 23 22:43:00 PST 2005

When working with a form, sometimes we need to keep an unrounded value
for calculations, but display a rounded value on-screen. Is there any
mechanism envisaged for making this readily available without keeping
track of variables other than the object displaying the value?
For instance, referencing an object's .value would yield 7889.897777,
but if the format has been set to #0.00, on screen would be either
7889.89 or 7889.90 depending on the rounding settings.
Kind Regards,
Disclaimer: The information contained in this communication is subject
to copyright and intended only for the use of the addressee(s).
Unauthorised use, disclosure, or copying is strictly prohibited. The
views of the sender do not necessarily represent the official view of
Teknatic (Pty) Ltd. If you have received this communication in error,
please notify the sender.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20051124/1f2161cd/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 12277 bytes
Desc: msvcard.jpg
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20051124/1f2161cd/attachment-0001.jpeg>

More information about the whatwg mailing list