Skip to main content

encode_float_single_ibm_hex

Function encode_float_single_ibm_hex 

Source
pub fn encode_float_single_ibm_hex(value: f32, buffer: &mut [u8]) -> Result<()>
Expand description

Encode a COMP-1 value in IBM hexadecimal floating-point format.

ยงErrors

Returns:

  • CBKE510_NUMERIC_OVERFLOW if the buffer is too small
  • CBKE510_NUMERIC_OVERFLOW for non-finite values or exponent overflow