Skip to content

Commit 64fb7ee

Browse files
committed
Update region lines parsing to round to +/- MAX_VALUE
1 parent 5ddbe7b commit 64fb7ee

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

index.bs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,19 @@ Objects</a>.</p>
28522852

28532853
<li><p>Interpret |value| as an integer, and let |number| be that number.</p></li>
28542854

2855-
<li><p>Let |region|'s <a>WebVTT region lines</a> be |number|.</p></li>
2855+
<li><p><i>Conversion</i>: Let <var>S</var> be the set of finite IEEE 754 double-precision
2856+
floating-point values except −0, but with two special values added:
2857+
<var>2<sup>1024</sup></var> and <var>−2<sup>1024</sup></var>.</p></li>
2858+
2859+
<li><p>Let |rounded-number| be the number in |S| that is closest to |number|,
2860+
selecting the number with an even significand if there are two equally close
2861+
values. (The two special values <var>2<sup>1024</sup></var> and <var>−2<sup>1024</sup></var>
2862+
are considered to have even significands for this purpose.)</p>
2863+
2864+
<li><p>If |rounded-number| is <var>2<sup>1024</sup></var> or <var>−2<sup>1024</sup></var>,
2865+
jump to the step labeled <i>next setting</i></p></li>
2866+
2867+
<li><p>Let |region|'s <a>WebVTT region lines</a> be |rounded-number|.</p></li>
28562868
</ol>
28572869
</dd>
28582870

0 commit comments

Comments
 (0)