Skip to main content

rb_num2fix

Function rb_num2fix 

Source
pub unsafe extern "C" fn rb_num2fix(val: VALUE) -> VALUE
Expand description

Converts a numeric value into a Fixnum. This is not a preserving conversion; for instance 1.5 would be converted into 1.

@param[in] val A numeric object. @exception rb_eTypeError No conversion from val to Integer. @exception rb_eRangeError val out of range. @return A fixnum converted from val.

@internal

ยงThis seems used from nowhere?

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.3.8