abs
-- r7rs
Definition procedure
;
Procedure variants:
((real-zero) -> (real-zero))
((real-positive) -> (real-positive))
real-positive
;real-positive
;((real-negative) -> (real-positive))
real-negative
;real-positive
;((real) -> (real-nan))
scheme:base
-- (scheme base)
;scheme
-- (scheme)
;(abs x)
The
abs
procedure returns the absolute value of its argument.(abs -7) ===> 7
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.