Abs

From King Arthur's Gold Wiki
Jump to: navigation, search

Returns the absolute value of the given number.


This method is part of the Maths namespace so you need to prefix calls to it with 'Maths::'.

This method has two variants - one for ints, the other for floats.

int Maths::Abs(int v)
float Maths::Abs(float v)