LiveScript
LiveScript copied to clipboard
Livescript needs to rediclare "+", "-", "*", "/"
Try to
console.log( 823456789123456.3 ); // 823456789123456.2
And this is just one example. Javascript has a lot of problems and we forced to use bignumber.js
or big.js
So, it will be good to have something like
operator (+) = (arg1, arg2)-> bignumber.plus(arg1, arg2).to-number!
operator (-) = (arg1, arg2)-> bignumber.minus(arg1, arg2).to-number!
operator (*) = (arg1, arg2)-> bignumber.mul(arg1, arg2).to-number!
operator (/) = (arg1, arg2)-> bignumber.div(arg1, arg2).to-number!
plus = (arg1, arg2) -> bignumber.plus(arg1, arg2).to-number!
a `plus` b
Works today.
yeah! it really helps.
but strange thing that we cannot use native operators at all. too much issues with them