Skip to main content

encode_float_double_ibm_hex

Function encode_float_double_ibm_hex 

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

Encode a COMP-2 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