Skip to content
This repository was archived by the owner on Jun 5, 2022. It is now read-only.

fround support #21

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Math.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ exports.remainder = function (n) {

exports.round = Math.round;

exports.fround = Math.fround;

exports.sin = Math.sin;

exports.sqrt = Math.sqrt;
Expand Down
3 changes: 3 additions & 0 deletions src/Math.purs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ foreign import pow :: Number -> Number -> Number
-- | Returns the integer closest to the argument.
foreign import round :: Number -> Number

-- | Returns the 32-bit floating point number closest to the argument.
foreign import fround :: Number -> Number

-- | Returns the sine of the argument.
foreign import sin :: Radians -> Number

Expand Down