Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
Functions
nan.c File Reference
#include "ruby/missing.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Functions

double nan (const char *spec)
 

Function Documentation

◆ nan()

double nan ( const char *  spec)

Definition at line 7 of file nan.c.

References assert, free, len, malloc, NAN, NULL, snprintf, and strtod.

Referenced by Init_Numeric(), rb_int_fdiv_double(), rb_rational_pow(), and VpGetDoubleNaN().