Skip to content

Commit 7883e13

Browse files
authored
fix: avoid rounding errors
Signed-off-by: Athan <[email protected]>
1 parent 4f08be9 commit 7883e13

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/assert/has-float16array-support/lib

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/assert/has-float16array-support/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ function hasFloat16ArraySupport() {
4545
}
4646
// Test basic support...
4747
try {
48-
arr = new GlobalFloat16Array( [ 1.0, 3.14, -3.14, 5.0e40 ] );
48+
arr = new GlobalFloat16Array( [ 1.0, 3.0, -3.0, 5.0e40 ] );
4949
bool = (
5050
isFloat16Array( arr ) &&
5151
arr[ 0 ] === 1.0 &&
52-
arr[ 1 ] !== 3.14 &&
53-
arr[ 2 ] !== -3.14 &&
52+
arr[ 1 ] !== 3.0 &&
53+
arr[ 2 ] !== -3.0 &&
5454
arr[ 3 ] === PINF
5555
);
5656
} catch ( err ) { // eslint-disable-line no-unused-vars

0 commit comments

Comments
 (0)