float
float(n_arg) =>f_result
Description
Converts a number into its equivalent floating-point number.
Arguments
|
Integer to be converted to floating-point. If you give a floating-point number as an argument, it returns the argument unchanged. |
Value Returned
Examples
float(3)
=> 3.0
float(1.2)
=> 1.2
Related Topics
Return to top