Arithmetics in Haskell and JavaScript.