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

((-3)^2)^1/2

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

Var = Abs(InVal)

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

:)
0
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.