abs

get the absolute value for given integer


Parameters

abs value :integer :floating :complex :rational

Returns

  • :integer
  • :floating

Examples

copy
print abs 6 ; 6 print abs 6-7 ; 1

copy
abs to :complex @[pi 1] ; => 3.296908309475615

Related