Function anjay_ret_double

Function Documentation

int anjay_ret_double(anjay_output_ctx_t *ctx, double value)

Returns a 64-bit floating-point value from the data model handler.

Note: the value will be sent as a 32-bit floating-point value if it is exactly representable as such.

Parameters:
  • ctx – Output context to operate on.

  • value – The value to return.

Returns:

0 on success, a negative value in case of error.