Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

How to deal with Decimals.

View gist:1990113
1 2 3 4 5
1.9.3-p0 :005 > (BigDecimal("70") - BigDecimal("10.95")).to_s("F")
=> "59.05"
1.9.3-p0 :006 > (BigDecimal("70") - BigDecimal("40.95")).to_s("F")
=> "29.05"
1.9.3-p0 :007 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.