示例#1
0
 /**
  * Determines if the 64 bit float fits in a 16 bit float.
  *
  * @param Float64 $float The float.
  * @return bool True if it fits, false otherwise.
  */
 public static function fits(Float64 $float)
 {
     return $float->isZero() || $float->isInfinity() || $float->isNaN() || static::fitsAsNormal($float) || static::fitsAsSubnormal($float);
 }