A JavaScript implementation of decimal type.