From 2615764d3a66623b3e84f7338f866ea65184a9af Mon Sep 17 00:00:00 2001 From: Athan Clark Date: Thu, 6 Dec 2018 13:23:16 -0700 Subject: [PATCH] fround --- src/Math.js | 2 ++ src/Math.purs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/Math.js b/src/Math.js index 9041361..ebfea5f 100644 --- a/src/Math.js +++ b/src/Math.js @@ -56,6 +56,8 @@ exports.remainder = function (n) { exports.round = Math.round; +exports.fround = Math.fround; + exports.sin = Math.sin; exports.sqrt = Math.sqrt; diff --git a/src/Math.purs b/src/Math.purs index a8f2516..85ae047 100644 --- a/src/Math.purs +++ b/src/Math.purs @@ -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