Update index.js
Browse files
index.js
CHANGED
@@ -76,7 +76,7 @@ export function int64ToFloat16(int64Value) {
|
|
76 |
}
|
77 |
}
|
78 |
|
79 |
-
export function float16ToInt64(float16Value
|
80 |
// Extract components from float16
|
81 |
const sign = (float16Value & 0x8000) >> 15;
|
82 |
const exponent = (float16Value & 0x7c00) >> 10;
|
|
|
76 |
}
|
77 |
}
|
78 |
|
79 |
+
export function float16ToInt64(float16Value) {
|
80 |
// Extract components from float16
|
81 |
const sign = (float16Value & 0x8000) >> 15;
|
82 |
const exponent = (float16Value & 0x7c00) >> 10;
|