- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 05 Oct 2011 18:08:39 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv16221 Modified Files: Overview.html Log Message: Allow omission of the number before the period in a floating point number. (whatwg r6635) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5319 retrieving revision 1.5320 diff -u -d -r1.5319 -r1.5320 --- Overview.html 5 Oct 2011 17:39:58 -0000 1.5319 +++ Overview.html 5 Oct 2011 18:08:35 -0000 1.5320 @@ -3890,15 +3890,19 @@ </ol></div><h5 id="floating-point-numbers"><span class="secno">2.5.4.3 </span>Floating-point numbers</h5><p>A string is a <dfn id="valid-floating-point-number">valid floating point number</dfn> if it consists of:<ol class="brief"><li>Optionally, a U+002D HYPHEN-MINUS character (-).</li> - <li>A series of one or more characters in the range U+0030 DIGIT - ZERO (0) to U+0039 DIGIT NINE (9).</li> + <li>One or both of the following, in the given order: - <li>Optionally: + <ol><li>A series of one or more characters in the range U+0030 DIGIT + ZERO (0) to U+0039 DIGIT NINE (9).</li> - <ol><li>A single U+002E FULL STOP character (.).</li> + <li> - <li>A series of one or more characters in the range U+0030 DIGIT - ZERO (0) to U+0039 DIGIT NINE (9).</li> + <ol><li>A single U+002E FULL STOP character (.).</li> + + <li>A series of one or more characters in the range U+0030 DIGIT + ZERO (0) to U+0039 DIGIT NINE (9).</li> + + </ol></li> </ol></li> @@ -3985,10 +3989,15 @@ </ol></li> <li><p>If the character indicated by <var title="">position</var> + is a U+002E FULL STOP (.), and that is not the last character in + <var title="">input</var>, and the character after the character + indicated by <var title="">position</var> is one of U+0030 DIGIT + ZERO (0) to U+0039 DIGIT NINE (9), then set <var title="">value</var> to zero and jump to the step labeled + <i>fraction</i>.</p> + <li><p>If the character indicated by <var title="">position</var> is not one of U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), then return an error.</li> - <li><p><a href="#collect-a-sequence-of-characters">Collect a sequence of characters</a> in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), and interpret the resulting sequence as a base-ten integer. Multiply <var title="">value</var> by that integer.</li> @@ -3996,8 +4005,8 @@ <li>If <var title="">position</var> is past the end of <var title="">input</var>, jump to the step labeled <i>conversion</i>.</li> - <li><p>If the character indicated by <var title="">position</var> - is a U+002E FULL STOP (.), run these substeps:</p> + <li><p><i>Fraction</i>: If the character indicated by <var title="">position</var> is a U+002E FULL STOP (.), run these + substeps:</p> <ol><li><p>Advance <var title="">position</var> to the next character.</li>
Received on Wednesday, 5 October 2011 18:08:44 UTC