abs

abs, function

def const autodiff pure abs(quantity: number): number

Returns the absolute value of the entered quantity.

Example

show table "" with
  abs(4.6)  
  abs(-4.6)

This outputs the following table:

abs(4.6) abs(-4.6)
4.6 4.6

Remarks

This function is similar to the ABS function in Excel.

User Contributed Notes
0 notes + add a note