* ext/bigdecimal/bigdecimal.c: [DOC] Add description of
`BigDecimal.new` exceptions. Patched by @joker1007 and @prathamesh-sonpatki [Fixes GH-690] https://github.com/ruby/ruby/pull/690 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9437332afd
commit
bf3d294ae8
@ -1,3 +1,10 @@
|
||||
Thu Aug 01 07:28:12 2014 Kenta Murata <mrkn@mrkn.jp>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c: [DOC] Add description of
|
||||
`BigDecimal.new` exceptions. Patched by @joker1007 and
|
||||
@prathamesh-sonpatki [Fixes GH-690]
|
||||
https://github.com/ruby/ruby/pull/690
|
||||
|
||||
Thu Jul 31 22:20:12 2014 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c: add WIN32OLE_RECORD#inspect.
|
||||
|
@ -2463,6 +2463,19 @@ static Real *BigDecimal_new(int argc, VALUE *argv);
|
||||
*
|
||||
* The actual number of significant digits used in computation is usually
|
||||
* larger than the specified number.
|
||||
*
|
||||
* ==== Exceptions
|
||||
*
|
||||
* TypeError:: If the +initial+ type is neither Fixnum, Bignum, Float,
|
||||
* Rational, nor BigDecimal, this exception is raised.
|
||||
*
|
||||
* TypeError:: If the +digits+ is not a Fixnum, this exception is raised.
|
||||
*
|
||||
* ArgumentError:: If +initial+ is a Float, and the +digits+ is larger than
|
||||
* Float::DIG + 1, this exception is raised.
|
||||
*
|
||||
* ArgumentError:: If the +initial+ is a Float or Rational, and the +digits+
|
||||
* value is omitted, this exception is raised.
|
||||
*/
|
||||
static VALUE
|
||||
BigDecimal_initialize(int argc, VALUE *argv, VALUE self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user