abs1.0

abs number

Reports the absolute value of number.

show abs -7
=> 7
show abs 5
=> 5

Take me to the full NetLogo Dictionary