Cold Help System: Programming: ColdC Reference Manual: Functions: Numeric: abs()


INTEGER|FLOAT abs(INTEGER|FLOAT number)

This function returns the absolute value of number, where number can be either a float or an integer (and the same type of value is returned). Examples:

abs(-6)
=> 6

abs(7)
=> 7

abs(-000.12)
=> 0.120000



abs() | Math | max() | min() | random()


the Cold Dark