Project

General

Profile

Bug #10576 » doc_bigdecimal_p1.patch

patch 1 - stomar (Marcus Stollsteimer), 12/06/2014 01:52 PM

View differences:

ext/bigdecimal/bigdecimal.c (Arbeitskopie)
}
}
/* Returns the absolute value.
/* Returns the absolute value, as a BigDecimal.
*
* BigDecimal('5').abs -> 5
*
......
return ToValue(c);
}
/* Return the integer part of the number.
/* Return the integer part of the number, as a BigDecimal.
*/
static VALUE
BigDecimal_fix(VALUE self)
......
return ToValue(c);
}
/* Return the fractional part of the number.
/* Return the fractional part of the number, as a BigDecimal.
*/
static VALUE
BigDecimal_frac(VALUE self)
(1-1/3)