pub unsafe extern "C" fn ruby_strtod(
str_: *const c_char,
endptr: *mut *mut c_char,
) -> f64Expand description
Our own locale-insensitive version of strtod(3). The conversion is done
as if the current locale is set to the “C” locale, no matter actual runtime
locale settings.
§@param[in] str Decimal or hexadecimal representation of a floating
point number.
@param[out] endptr NULL, or an arbitrary pointer (overwritten on return).
@return Converted number.
@post If endptr is not NULL, it is updated to point the first such
byte where conversion failed.
@note This function sets errno on failure.
- ERANGE: Converted integer is out of range of double.
@see William D. Clinger, “How to Read Floating Point Numbers
Accurately” in Proc. ACM SIGPLAN ’90, pp. 92-101.
https://doi.org/10.1145/93542.93557
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3