function hfround(num) {
  num = Number(num); // for optimization

  if (!Number.isFinite(num) || num === 0) {
    return num;
  }

  const x16 = (0, _lib.roundToFloat16Bits)(num);
  return (0, _lib.convertToNumber)(x16);
}
/**
 * returns the nearest half precision float representation of a number.
 * @param {number} num
 */
returns the nearest half precision float representation of a number.
@param {number} num
returns the nearest half precision float representation of a number . @param { number } num
function hfround(num) {
  num = Number(num); 
  if (!Number.isFinite(num) || num === 0) {
    return num;
  }
  const x16 = (0, _lib.roundToFloat16Bits)(num);
  return (0, _lib.convertToNumber)(x16);
}
function hfround ( num ) { num = Number ( num ) ; if ( ! Number . isFinite ( num ) || num === 0 ) { return num ; } const x16 = ( 0 , _lib . roundToFloat16Bits ) ( num ) ; return ( 0 , _lib . convertToNumber ) ( x16 ) ; }
returns the nearest half precision float representation of a number.
returns the nearest half precision float representation of a number .
// for optimization