floatp
floatp(g_value) =>t/nil
Description
Checks whether the specified object is a floating-point number. Same as realp.
The suffix p is usually added to the name of a function to indicate that it is a predicate function.
Arguments
Value Returned
|
If g_value is a floating-point number, a data type whose internal name is |
|
Examples
floatp(3)
=> nil
floatp(3.0)
=> t
Related Topics
Return to top