Project

General

Profile

Actions

Bug #3789

closed

Float('0x...') での挙動が不審

Added by tadf (tadayoshi funaba) over 13 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-09-04) [i686-linux]
Backport:

Description

=begin
Float() で指数が大きい場合に、零になったり、無限大になったりする。

Float('0xf.fp1000000000000') #=> 0.0
Float('0xf.fp10000000000000') #=> Infinity
Float('0xf.fp100000000000000') #=> Infinity
Float('0xf.fp1000000000000000') #=> 0.0
=end

Actions

Also available in: Atom PDF

Like0
Like0