purescript-deprecated / purescript-math

Math functions
BSD 3-Clause "New" or "Revised" License
19 stars 20 forks source link

Added `toFixed` binding. #1

Closed Fresheyeball closed 10 years ago

paf31 commented 10 years ago

This isn't in the Math object. Maybe it belongs in globals?

garyb commented 10 years ago

Also toFixed returns a String I think?

Fresheyeball commented 10 years ago

you are correct, it does return a string. The way I've been using it, I never knew that. I can move it to globals if you like. I've updated the type sig to String

Fresheyeball commented 10 years ago

https://github.com/purescript/purescript-globals/pull/3