This commit is contained in:
10
node_modules/@petamoriken/float16/src/f16round.mjs
generated
vendored
Normal file
10
node_modules/@petamoriken/float16/src/f16round.mjs
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { roundToFloat16 } from "./_util/converter.mjs";
|
||||
|
||||
/**
|
||||
* returns the nearest half-precision float representation of a number
|
||||
* @param {number} x
|
||||
* @returns {number}
|
||||
*/
|
||||
export function f16round(x) {
|
||||
return roundToFloat16(x);
|
||||
}
|
||||
Reference in New Issue
Block a user