Project

General

Profile

Bug #6112 » comment.patch

sho-h (Sho Hashimoto), 03/04/2012 11:35 AM

View differences:

string.c (working copy)
* "hello".byteslice(-1) #=> "o"
* "hello".byteslice(1, 2) #=> "el"
* "\x80\u3042".byteslice(1, 3) #=> "\u3042"
* "\x03\u3042\xff".byteslice(1..3) #=> "\u3942"
* "\x03\u3042\xff".byteslice(1..3) #=> "\u3042"
*/
static VALUE
ext/bigdecimal/lib/bigdecimal/math.rb (working copy)
# sin (x, prec)
# cos (x, prec)
# atan(x, prec) Note: |x|<1, x=0.9999 may not converge.
# log (x, prec)
# PI (prec)
# E (prec) == exp(1.0,prec)
#
    (1-1/1)