Skip to content

Commit 4f11bc5

Browse files
committed
Update region lines parsing to round to +/- MAX_VALUE
1 parent f6b3eab commit 4f11bc5

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

index.bs

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

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

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

0 commit comments

Comments
 (0)