VF function for positive value

Very easy question but i can not find the syntax

I need the syntax for the function to convert a number in any case into a positive value

so if I calculate -3  than the result needs to be +3

I know I can do this with


But is there a function function(-3) = 3
Who is Participating?
Guy Hengel [angelIII / a3]Billing EngineerCommented:
abs(-3) => 3
The abs (Absolute) function will turn a negative into a positive....

Var = Abs(InVal)

3 = -3
3 = +3
themrocAuthor Commented:
thanks I just could not find it

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.