grain-lang / grain

The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾
https://grain-lang.org/
GNU Lesser General Public License v3.0
3.28k stars 115 forks source link

feat(stdlib): Add `abs`, `neg`, `isNaN`, `isInfinite` to `Float32` #2116

Closed spotandjake closed 3 months ago

spotandjake commented 5 months ago

This pr adds Float32.abs, Float32.neg, Float64.isInfinite and Float32.isNaN to the Float32 module. This is work towards bringing the various number modules closer inline to the main Number module's api.