summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@suse.com>2017-10-16 13:59:37 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-10-16 14:59:37 +0200
commit590512873c2326970c1bdea5604c098f49f8145c (patch)
tree146c9eda1637a1db1bdca7900f0b925ed2f3b033
parent9d5f54f4564656f7bc0d9af30034922de65d4542 (diff)
downloadNim-590512873c2326970c1bdea5604c098f49f8145c.tar.gz
Add hint about computing powers between integers (#6419)
-rw-r--r--lib/pure/math.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/math.nim b/lib/pure/math.nim
index 8037b31b0..7fd8bbcef 100644
--- a/lib/pure/math.nim
+++ b/lib/pure/math.nim
@@ -184,6 +184,8 @@ when not defined(JS):
   proc pow*(x, y: float32): float32 {.importc: "powf", header: "<math.h>".}
   proc pow*(x, y: float64): float64 {.importc: "pow", header: "<math.h>".}
     ## computes x to power raised of y.
+    ##
+    ## To compute power between integers, use `^` e.g. 2 ^ 6
 
   proc erf*(x: float32): float32 {.importc: "erff", header: "<math.h>".}
   proc erf*(x: float64): float64 {.importc: "erf", header: "<math.h>".}