All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
11 lines
238 B
JavaScript
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);
|
|
}
|