diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2021-01-16 05:37:23 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 12:37:23 +0100 |
commit | 8939de15d76fa43a4ce2c5cc3c693a2d47383ed9 (patch) | |
tree | 9f87c878848aeca238e58c3c85edddb0e63337fc /lib/pure | |
parent | 18e14f59209d4c4319317baa1faa089bec9fe484 (diff) | |
download | Nim-8939de15d76fa43a4ce2c5cc3c693a2d47383ed9.tar.gz |
minor improvement on math.nim (#16733)
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/math.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim index bcda68afe..f9cf5f700 100644 --- a/lib/pure/math.nim +++ b/lib/pure/math.nim @@ -886,8 +886,8 @@ else: # JS func trunc*(x: float32): float32 {.importc: "Math.trunc", nodecl.} func trunc*(x: float64): float64 {.importc: "Math.trunc", nodecl.} - func `mod`*(x, y: float32): float32 {.importcpp: "# % #".} - func `mod`*(x, y: float64): float64 {.importcpp: "# % #".} + func `mod`*(x, y: float32): float32 {.importjs: "(# % #)".} + func `mod`*(x, y: float64): float64 {.importjs: "(# % #)".} ## Computes the modulo operation for float values (the remainder of ``x`` divided by ``y``). ## ## .. code-block:: nim |