Skip to content

Commit 7ef854a

Browse files
committed
Update artifacts
1 parent 16f8de8 commit 7ef854a

File tree

5 files changed

+28
-21
lines changed

5 files changed

+28
-21
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[269,271,99.262,22,23,95.6522,2,2,100,269,271,99.262,"a068c72880b9f3757d8b00ec945eb4e9cba31a8b","2026-01-07 23:09:48 -0600"]
22
[269,271,99.262,22,23,95.6522,2,2,100,269,271,99.262,"dafbda6d3b1b782596f643582a90c842026688aa","2026-01-07 23:49:03 -0600"]
3+
[271,273,99.2674,22,23,95.6522,2,2,100,271,273,99.2674,"5cddadf2f755a8e623ca132a6a0aa91bf6a51fdc","2026-01-07 23:07:56 -0800"]

math/base/special/roundnf/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1>All files</h1>
2525
<div class='fl pad1y space-right2'>
2626
<span class="strong">99.26% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>269/271</span>
28+
<span class='fraction'>271/273</span>
2929
</div>
3030

3131

@@ -46,7 +46,7 @@ <h1>All files</h1>
4646
<div class='fl pad1y space-right2'>
4747
<span class="strong">99.26% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>269/271</span>
49+
<span class='fraction'>271/273</span>
5050
</div>
5151

5252

@@ -95,17 +95,17 @@ <h1>All files</h1>
9595

9696
<tr>
9797
<td class="file high" data-value="main.js"><a href="main.js.html">main.js</a></td>
98-
<td data-value="98.78" class="pic high">
98+
<td data-value="98.79" class="pic high">
9999
<div class="chart"><div class="cover-fill" style="width: 98%"></div><div class="cover-empty" style="width: 2%"></div></div>
100100
</td>
101-
<td data-value="98.78" class="pct high">98.78%</td>
102-
<td data-value="164" class="abs high">162/164</td>
101+
<td data-value="98.79" class="pct high">98.79%</td>
102+
<td data-value="166" class="abs high">164/166</td>
103103
<td data-value="95" class="pct high">95%</td>
104104
<td data-value="20" class="abs high">19/20</td>
105105
<td data-value="100" class="pct high">100%</td>
106106
<td data-value="1" class="abs high">1/1</td>
107-
<td data-value="98.78" class="pct high">98.78%</td>
108-
<td data-value="164" class="abs high">162/164</td>
107+
<td data-value="98.79" class="pct high">98.79%</td>
108+
<td data-value="166" class="abs high">164/166</td>
109109
</tr>
110110

111111
<tr>
@@ -131,7 +131,7 @@ <h1>All files</h1>
131131
<div class='footer quiet pad2 space-top1 center small'>
132132
Code coverage generated by
133133
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
134-
at 2026-01-08T05:50:55.556Z
134+
at 2026-01-08T07:10:33.977Z
135135
</div>
136136
<script src="prettify.js"></script>
137137
<script>

math/base/special/roundnf/index.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ <h1><a href="index.html">All files</a> index.js</h1>
217217
<div class='footer quiet pad2 space-top1 center small'>
218218
Code coverage generated by
219219
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
220-
at 2026-01-08T05:50:55.556Z
220+
at 2026-01-08T07:10:33.977Z
221221
</div>
222222
<script src="prettify.js"></script>
223223
<script>

math/base/special/roundnf/main.js.html

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ <h1><a href="index.html">All files</a> main.js</h1>
2323
<div class='clearfix'>
2424

2525
<div class='fl pad1y space-right2'>
26-
<span class="strong">98.78% </span>
26+
<span class="strong">98.79% </span>
2727
<span class="quiet">Statements</span>
28-
<span class='fraction'>162/164</span>
28+
<span class='fraction'>164/166</span>
2929
</div>
3030

3131

@@ -44,9 +44,9 @@ <h1><a href="index.html">All files</a> main.js</h1>
4444

4545

4646
<div class='fl pad1y space-right2'>
47-
<span class="strong">98.78% </span>
47+
<span class="strong">98.79% </span>
4848
<span class="quiet">Lines</span>
49-
<span class='fraction'>162/164</span>
49+
<span class='fraction'>164/166</span>
5050
</div>
5151

5252

@@ -227,7 +227,11 @@ <h1><a href="index.html">All files</a> main.js</h1>
227227
<a name='L162'></a><a href='#L162'>162</a>
228228
<a name='L163'></a><a href='#L163'>163</a>
229229
<a name='L164'></a><a href='#L164'>164</a>
230-
<a name='L165'></a><a href='#L165'>165</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
230+
<a name='L165'></a><a href='#L165'>165</a>
231+
<a name='L166'></a><a href='#L166'>166</a>
232+
<a name='L167'></a><a href='#L167'>167</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
233+
<span class="cline-any cline-yes">1x</span>
234+
<span class="cline-any cline-yes">1x</span>
231235
<span class="cline-any cline-yes">1x</span>
232236
<span class="cline-any cline-yes">1x</span>
233237
<span class="cline-any cline-yes">1x</span>
@@ -429,6 +433,8 @@ <h1><a href="index.html">All files</a> main.js</h1>
429433
&nbsp;
430434
var MAX_INT = MAX_SAFE_INTEGER + 1;
431435
var HUGE = f32( 1.0e+38 );
436+
var ZERO = f32( 0.0 );
437+
var TEN = f32( 10.0 );
432438
&nbsp;
433439
&nbsp;
434440
// MAIN //
@@ -454,7 +460,7 @@ <h1><a href="index.html">All files</a> main.js</h1>
454460
*
455461
* &lt;!-- &lt;note&gt; --&gt;
456462
*
457-
* Note that rescaling \\(x\\) can result in unexpected behavior. For instance, the result of \\(\\operatorname{roundnf}(0.2+0.1,-16)\\) is \\(0.30000001192092896\\) and not \\(0.3\\). While possibly unexpected, this is not a bug. The behavior stems from the fact that most decimal fractions cannot be exactly represented as floating-point numbers. And further, rescaling can lead to slightly different fractional values, which, in turn, affects the result of \\(\mathrm{roundf}\\).
463+
* Note that rescaling \\(x\\) can result in unexpected behavior. For instance, the result of \\(\\operatorname{roundnf}(0.2+0.1,-7)\\) is \\(0.30000001192092896\\) and not \\(0.3\\). While possibly unexpected, this is not a bug. The behavior stems from the fact that most decimal fractions cannot be exactly represented as floating-point numbers. And further, rescaling can lead to slightly different fractional values, which, in turn, affects the result of \\(\mathrm{roundf}\\).
458464
*
459465
* &lt;!-- &lt;/note&gt; --&gt;
460466
*
@@ -520,7 +526,7 @@ <h1><a href="index.html">All files</a> main.js</h1>
520526
isInfinitef( x ) ||
521527
&nbsp;
522528
// Handle +-0...
523-
x === 0.0 ||
529+
x === ZERO ||
524530
&nbsp;
525531
// If `n` exceeds the maximum number of feasible decimal places (such as with subnormal numbers), nothing to round...
526532
n &lt; MIN_EXP_SUBNORMAL ||
@@ -532,18 +538,18 @@ <h1><a href="index.html">All files</a> main.js</h1>
532538
}
533539
// The maximum absolute single-precision float is ~3.4e38. Accordingly, any possible finite `x` rounded to the nearest &gt;=10^39 is 0.0.
534540
if ( n &gt; MAX_EXP ) {
535-
return f32( f32( 0.0 ) * x ); // preserve the sign (same behavior as roundf)
541+
return f32( ZERO * x ); // preserve the sign (same behavior as roundf)
536542
}
537543
// If we overflow, return `x`, as the number of digits to the right of the decimal is too small (i.e., `x` is too large / lacks sufficient fractional precision) for there to be any effect when rounding...
538544
if ( n &lt; MIN_EXP ) {
539-
s = powf( f32( 10.0 ), -( n + MAX_EXP ) );
545+
s = powf( TEN, -( n + MAX_EXP ) );
540546
y = f32( f32( x * HUGE ) * s ); // order of operation matters!
541547
if ( isInfinitef( y ) ) {
542548
return x;
543549
}
544550
return f32( f32( roundf( y ) / HUGE ) / s );
545551
}
546-
s = powf( f32( 10.0 ), -n );
552+
s = powf( TEN, -n );
547553
y = f32( x * s );
548554
if ( isInfinitef( y ) ) <span class="branch-0 cbranch-no" title="branch not covered" >{</span>
549555
<span class="cstat-no" title="statement not covered" > return x;</span>
@@ -562,7 +568,7 @@ <h1><a href="index.html">All files</a> main.js</h1>
562568
<div class='footer quiet pad2 space-top1 center small'>
563569
Code coverage generated by
564570
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
565-
at 2026-01-08T05:50:55.556Z
571+
at 2026-01-08T07:10:33.977Z
566572
</div>
567573
<script src="prettify.js"></script>
568574
<script>

math/base/special/roundnf/native.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ <h1><a href="index.html">All files</a> native.js</h1>
244244
<div class='footer quiet pad2 space-top1 center small'>
245245
Code coverage generated by
246246
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
247-
at 2026-01-08T05:50:55.556Z
247+
at 2026-01-08T07:10:33.977Z
248248
</div>
249249
<script src="prettify.js"></script>
250250
<script>

0 commit comments

Comments
 (0)