mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 12:18:32 +00:00
Add more functions to math ns.
This commit is contained in:
parent
11249245ae
commit
73260b53f1
@ -26,6 +26,16 @@
|
||||
[^number v]
|
||||
(- v))
|
||||
|
||||
(defn sqrt
|
||||
"Returns the square root of a number."
|
||||
[v]
|
||||
(js/Math.sqrt v))
|
||||
|
||||
(defn pow
|
||||
"Returns the base to the exponent power."
|
||||
[b e]
|
||||
(js/Math.pow b e))
|
||||
|
||||
(defn floor
|
||||
"Returns the largest integer less than or
|
||||
equal to a given number."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user