Scheme Exercises

back to exercise list       previous     next

Group:     Exercise: 6/48 

Absolute value:  The absolute value of a number

Create the function "my-abs" that returns the absolute value of its numeric argument.
(my-abs -5) => 5
(my-abs 48.3) => 48.3