[][src]Function ion_c_sys::ion_decimal_to_ion_int

pub unsafe extern "C" fn ion_decimal_to_ion_int(
    value: *const ION_DECIMAL,
    context: *mut decContext,
    p_int: *mut ION_INT
) -> iERR

Converts the given ION_DECIMAL to its ION_INT representation. If the given ION_DECIMAL is not an integer, IERR_INVALID_ARG will be returned; rounding will never occur. If rounding is desired, use ion_decimal_to_integral_exact or ion_decimal_to_integral_value first.