Issue #7491 has been updated by mrkn (Kenta Murata).

Status changed from Open to Assigned
Assignee set to mrkn (Kenta Murata)


----------------------------------------
Bug #7491: BigMath.#exp ??? Float???Rational ??????å®???§ã????ªã??
https://bugs.ruby-lang.org/issues/7491#change-34324

Author: sho-h (Sho Hashimoto)
Status: Assigned
Priority: Low
Assignee: mrkn (Kenta Murata)
Category: lib
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-12-02 trunk 38135) [x86_64-linux]


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



-- 
http://bugs.ruby-lang.org/