[DOC] Move each Float#to_s
example item by item
Like as +half+ option in Float#round. If the body of the preceding list items and the following code block are indented at the same position, the code block is parsed as a list continuation. [Fixes GH-11683]
This commit is contained in:
parent
7081838d2a
commit
66b69d4ea5
11
numeric.c
11
numeric.c
@ -1047,16 +1047,15 @@ rb_float_new_in_heap(double d)
|
||||
* may contain:
|
||||
*
|
||||
* - A fixed-point number.
|
||||
* 3.14.to_s # => "3.14"
|
||||
* - A number in "scientific notation" (containing an exponent).
|
||||
* (10.1**50).to_s # => "1.644631821843879e+50"
|
||||
* - 'Infinity'.
|
||||
* (10.1**500).to_s # => "Infinity"
|
||||
* - '-Infinity'.
|
||||
* (-10.1**500).to_s # => "-Infinity"
|
||||
* - 'NaN' (indicating not-a-number).
|
||||
*
|
||||
* 3.14.to_s # => "3.14"
|
||||
* (10.1**50).to_s # => "1.644631821843879e+50"
|
||||
* (10.1**500).to_s # => "Infinity"
|
||||
* (-10.1**500).to_s # => "-Infinity"
|
||||
* (0.0/0.0).to_s # => "NaN"
|
||||
* (0.0/0.0).to_s # => "NaN"
|
||||
*
|
||||
*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user