mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/bigdecimal/bigdecimal.c: Update overview formatting of headers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
184eaedb3a
commit
54a22fb8c7
2 changed files with 22 additions and 13 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Jun 15 10:19:42 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.c: Update overview formatting of headers
|
||||
|
||||
Sat Jun 15 10:19:06 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* ext/bigdecimal/bigdecimal.gemspec: Update authors
|
||||
|
|
|
@ -2948,15 +2948,7 @@ get_vp_value:
|
|||
/* Document-class: BigDecimal
|
||||
* BigDecimal provides arbitrary-precision floating point decimal arithmetic.
|
||||
*
|
||||
* Copyright (C) 2002 by Shigeo Kobayashi <shigeo@tinyforest.gr.jp>.
|
||||
*
|
||||
* You may distribute under the terms of either the GNU General Public
|
||||
* License or the Artistic License, as specified in the README file
|
||||
* of the BigDecimal distribution.
|
||||
*
|
||||
* Documented by mathew <meta@pobox.com>.
|
||||
*
|
||||
* = Introduction
|
||||
* == Introduction
|
||||
*
|
||||
* Ruby provides built-in support for arbitrary precision integer arithmetic.
|
||||
*
|
||||
|
@ -2996,12 +2988,12 @@ get_vp_value:
|
|||
*
|
||||
* (1.2 - 1.0) == 0.2 #=> false
|
||||
*
|
||||
* = Special features of accurate decimal arithmetic
|
||||
* == Special features of accurate decimal arithmetic
|
||||
*
|
||||
* Because BigDecimal is more accurate than normal binary floating point
|
||||
* arithmetic, it requires some special values.
|
||||
*
|
||||
* == Infinity
|
||||
* === Infinity
|
||||
*
|
||||
* BigDecimal sometimes needs to return infinity, for example if you divide
|
||||
* a value by zero.
|
||||
|
@ -3013,7 +3005,7 @@ get_vp_value:
|
|||
* <code>'Infinity'</code>, <code>'+Infinity'</code> and
|
||||
* <code>'-Infinity'</code> (case-sensitive)
|
||||
*
|
||||
* == Not a Number
|
||||
* === Not a Number
|
||||
*
|
||||
* When a computation results in an undefined value, the special value +NaN+
|
||||
* (for 'not a number') is returned.
|
||||
|
@ -3030,7 +3022,7 @@ get_vp_value:
|
|||
* n == 0.0 #=> nil
|
||||
* n == n #=> nil
|
||||
*
|
||||
* == Positive and negative zero
|
||||
* === Positive and negative zero
|
||||
*
|
||||
* If a computation results in a value which is too small to be represented as
|
||||
* a BigDecimal within the currently specified limits of precision, zero must
|
||||
|
@ -3052,6 +3044,19 @@ get_vp_value:
|
|||
*
|
||||
* Note also that in mathematics, there is no particular concept of negative
|
||||
* or positive zero; true mathematical zero has no sign.
|
||||
*
|
||||
* == License
|
||||
*
|
||||
* Copyright (C) 2002 by Shigeo Kobayashi <shigeo@tinyforest.gr.jp>.
|
||||
*
|
||||
* You may distribute under the terms of either the GNU General Public
|
||||
* License or the Artistic License, as specified in the README file
|
||||
* of the BigDecimal distribution.
|
||||
*
|
||||
* Maintained by mrkn <mrkn@mrkn.jp> and ruby-core members.
|
||||
*
|
||||
* Documented by zzak <zachary@zacharyscott.net>, mathew <meta@pobox.com>, and
|
||||
* many other contributors.
|
||||
*/
|
||||
void
|
||||
Init_bigdecimal(void)
|
||||
|
|
Loading…
Add table
Reference in a new issue