whatgoodisaroad / Big-js

An arbitrary precision math library for JavaScript
http://big-js.thatscaptaintoyou.com/
44 stars 6 forks source link

greaterThan method does not work as expected #2

Closed aiwenpl closed 11 years ago

aiwenpl commented 12 years ago

given: small = Big(0.63372); zero = Big(0);

test: small.greaterThan(zero)

expected: true

actual: false

code: if ( Big(0.63372).greaterThan(Big(0)) !== true) throw new Error("bug");

whatgoodisaroad commented 11 years ago

Fixed