# Class: com.pnfsoftware.jeb.util.primitives.Floats

Utility methods for `float` values and IEEE\-754 binary32/16 bit patterns.

## Constructor: Floats


## Static Method: fromBF16Bits
- parameter: `bits`, type: `int`
- return type: `float`

Description: Convert raw bfloat16 bits to a Java float.
parameter: bits: raw bits of a BF16 \(also named bfloat16, or E8M7 fp\)
return: a float representing the input

## Static Method: fromFP16Bits
- parameter: `bits`, type: `int`
- return type: `float`

Description: Convert raw IEEE\-754 binary16 bits to a Java float.
parameter: bits: raw bits of a FP16 \(half\-precision fp\)
return: a float representing the input

## Static Method: getNaNType
- parameter: `f`, type: `float`
- return type: `int`

Description: Determine the NaN type of a float.
parameter: f: an fp32 float
return: 0=not a NaN; 1=quiet NaN; 2=signaling NaN

## Static Method: getNaNType
- parameter: `bits`, type: `int`
- return type: `int`

Description: Determine the NaN type of a raw fp32 bit pattern.
parameter: bits: raw bits of an fp32 primitive
return: 0=not a NaN; 1=quiet NaN; 2=signaling NaN

## Static Method: getSpecialType
- parameter: `f`, type: `float`
- return type: `int`

Description: Determine whether a float is finite, infinite, or a NaN.
parameter: f: an fp32 float
return: 0=not a NaN; 1=quiet NaN; 2=signaling NaN, 3=infinite

## Static Method: getSpecialType
- parameter: `bits`, type: `int`
- return type: `int`

Description: Determine whether a raw fp32 bit pattern is finite, infinite, or a NaN.
parameter: bits: raw bits of an fp32 primitive
return: 0=not a NaN; 1=quiet NaN; 2=signaling NaN, 3=infinite

## Static Method: isQuietNaN
- parameter: `f`, type: `float`
- return type: `boolean`

Description: Determine whether a float is a quiet NaN.
parameter: f: an fp32 float
return: true if the value is a quiet NaN

## Static Method: isQuietNaN
- parameter: `bits`, type: `int`
- return type: `boolean`

Description: Determine whether a raw fp32 bit pattern represents a quiet NaN.
parameter: bits: raw bits of an fp32 primitive
return: true if the bit pattern represents a quiet NaN

## Static Method: isSignalingNaN
- parameter: `f`, type: `float`
- return type: `boolean`

Description: Determine whether a float is a signaling NaN.
parameter: f: an fp32 float
return: true if the value is a signaling NaN

## Static Method: isSignalingNaN
- parameter: `bits`, type: `int`
- return type: `boolean`

Description: Determine whether a raw fp32 bit pattern represents a signaling NaN.
parameter: bits: raw bits of an fp32 primitive
return: true if the bit pattern represents a signaling NaN

