Skip to content

Commit 4fb46d2

Browse files
committed
Revert "refactor: use stdlib fmod and DDD_D napi function"
This reverts commit 71ff8ee.
1 parent 71ff8ee commit 4fb46d2

File tree

1 file changed

+3
-4
lines changed
  • lib/node_modules/@stdlib/math/base/special/wrap/lib

1 file changed

+3
-4
lines changed

lib/node_modules/@stdlib/math/base/special/wrap/lib/main.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2424
var trunc = require( '@stdlib/math/base/special/trunc' );
2525
var fmod = require( '@stdlib/math/base/special/fmod' );
26-
var abs = require( '@stdlib/math/base/special/abs' );
2726

2827

2928
// MAIN //
@@ -75,13 +74,13 @@ function wrap( v, min, max ) {
7574
return NaN;
7675
}
7776
// Normalize +-0 to +0...
78-
if ( abs( v ) === 0.0 ) {
77+
if ( v === 0.0 ) {
7978
v = 0.0;
8079
}
81-
if ( abs( min ) === 0.0 ) {
80+
if ( min === 0.0 ) {
8281
min = 0.0;
8382
}
84-
if ( abs( max ) === 0.0 ) {
83+
if ( max === 0.0 ) {
8584
max = 0.0;
8685
}
8786
// Simple case where value is already within range...

0 commit comments

Comments
 (0)