Clojure's Math function in TypeScript


We have 16 Clojure functions so far - help us add more

Got a rainy Sunday afternoon and a taste for a porting puzzle?

  • Get inspiration from ClojureDocs.
  • Click "New file" in the appropriate folder on GitHub. This will fork the project to your account, directly add the file to it, and send a Pull Request to us.

We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.

Upstream Surface Inventory 3/60 shipped • 57 next 5%

Namespace-level inventory for Clojure 1.12: what we already ship, what we may still want, and what we intentionally skip or keep.

java.lang.Math

Clojure 1.12 · Catalog source: version-pinned source manifest clojure:temurin-21-tools-deps

5% shipped
3/60 shipped 57 next
Shipped (3)

Next

java.lang.Math helpers map cleanly to JS numbers.

  • absExact
  • acos
  • addExact
  • asin
  • atan
  • atan2
  • cbrt
  • ceilDiv
  • ceilDivExact
  • ceilMod
  • clamp
  • copySign
  • cos
  • cosh
  • decrementExact
  • divideExact
  • exp
  • expm1
  • floorDiv
  • floorDivExact
  • floorMod
  • fma
  • getExponent
  • hypot
  • IEEEremainder
  • incrementExact
  • log
  • log10
  • log1p
  • max
  • min
  • multiplyExact
  • multiplyFull
  • multiplyHigh
  • negateExact
  • nextAfter
  • nextDown
  • nextUp
  • pow
  • powerOfTwoD
  • powerOfTwoF
  • random
  • rint
  • round
  • scalb
  • signum
  • sin
  • sinh
  • sqrt
  • subtractExact
  • tan
  • tanh
  • toDegrees
  • toIntExact
  • toRadians
  • ulp
  • unsignedMultiplyHigh

« More Clojure functions