W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2005

[whatwg] Maintaining unrounded values in forms

From: Mark Stacey <mstacey@teknatic.com>
Date: Thu, 24 Nov 2005 08:43:00 +0200
Message-ID: <E027E2CABD59AA458D07F441EF050D550EFCF3@tn-zajhs004.Technatic.com>
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.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.jpeg>
Received on Wednesday, 23 November 2005 22:43:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:24 UTC