Skip to content

Commit

Permalink
Merge pull request #51 from monkey-mas/add-infomation-to-Float
Browse files Browse the repository at this point in the history
Add information to Float
  • Loading branch information
okkez committed Sep 5, 2013
2 parents 86ed8a8 + 89b2368 commit bfe976d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions refm/api/src/_builtin/functions
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,9 @@ arg に to_ary, to_a のいずれのメソッドもない場合は
p Float("10e2") #=> 1000.0
p Float("1e-2") #=> 0.01
p Float(".1") #=> 0.1
#@since 1.9.2
p Float("0xa") #=> 10.0
#@end

p Float("nan") # invalid value (ArgumentError)
p Float("INF") # invalid value (ArgumentError)
Expand Down

0 comments on commit bfe976d

Please sign in to comment.