Skip to content

Commit

Permalink
#83 - start math std module
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopedraza committed Dec 18, 2024
1 parent 3f8d195 commit 71758f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions std/math.komodo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let abs(n: Integer | Decimal | Fraction) := if n < 0 then -n else n

let sign(n: Integer | Decimal | Fraction) := if n < 0 then -1 else 1


0 comments on commit 71758f0

Please sign in to comment.