Skip to content

Instantly share code, notes, and snippets.

View manchicken's full-sized avatar
🦀
I pinch.

Mike Stemle manchicken

🦀
I pinch.
View GitHub Profile
@manveru
manveru / bigdecimal.coffee
Created July 23, 2011 21:05
simple BigDecimal in CoffeeScript
class BigDecimal
constructor: (number, @precision) ->
@number = @gobble(number)
plus: (other) ->
@bd @number + @gobble(other)
minus: (other) ->
@bd @number - @gobble(other)