Actions
Bug #7491
closedBigMath.#exp に Float、Rational を指定できない
Description
1.9.3 から BigMath.#exp でも Fixnum、Float、Rational オブジェクトが指定できるのではないかと思うのですが、Float、Rational については現在は ArgumentError と TypeError になってしまうようです。
puts BigMath.exp(BigDecimal("1.0"), 10) # => 0.2718281828E1
puts BigMath.exp(1, 10) # => 0.2718281828E1
puts BigMath.exp(1.0, 10) # => ArgumentError
puts BigMath.exp(Rational(1, 1), 10) # => TypeError
Updated by mrkn (Kenta Murata) about 12 years ago
- Status changed from Open to Assigned
- Assignee set to mrkn (Kenta Murata)
Updated by mrkn (Kenta Murata) almost 12 years ago
- Target version changed from 2.0.0 to 2.6
Updated by jeremyevans0 (Jeremy Evans) over 5 years ago
- Status changed from Assigned to Closed
Actions
Like0
Like0Like0Like0Like0