
package.src.f16round.mjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of float16 Show documentation
Show all versions of float16 Show documentation
IEEE 754 half-precision floating-point for JavaScript
The newest version!
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);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy