# < fig code > # comments | built-in functions | user functions | inline python
#### license: creative commons cc0 1.0 (public domain)
#### http://creativecommons.org/publicdomain/zero/1.0/
function abs x
now x
ifless x 0
now x times -1
fig
p return now
fig
now -5 abs now print
now 9 abs now print