W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2006

[whatwg] Simple numbers

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Wed, 07 Jun 2006 19:07:03 +0200
Message-ID: <20060607190703.yazsovulzqm88ocs@webmail.annevankesteren.nl>
Quoting Michel Fortin <michel.fortin at michelf.com>:
> Maybe a number element would be valuable, both inside and outside
> formulas, to provide format-neutral machine-readable numeric values:
>
>     <n value="123456789.12">123 456 789,12</n>

So the machine can just infer the format inside from the locale. The  
only thing it needs to know is what the number is and perhaps what  
base it is in. So you probably need <n base=""> or so and a thorough  
definition. I'm just not sure if having a new element for each piece  
that encloses something semantic is a solution that really scales. On  
the other hand, it probably does for the top50 use cases or so.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
Received on Wednesday, 7 June 2006 10:07:03 UTC

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