VF function for positive value

Posted on 2006-03-29
Last Modified: 2010-05-01
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
Question by:themroc
    LVL 142

    Accepted Solution

    abs(-3) => 3
    LVL 2

    Expert Comment

    The abs (Absolute) function will turn a negative into a positive....

    Var = Abs(InVal)

    3 = -3
    3 = +3

    Author Comment

    thanks I just could not find it


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now