Files
coopgo/node_modules/@petamoriken/float16/src/f16round.mjs
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

11 lines
238 B
JavaScript

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);
}