[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


VF function for positive value

Posted on 2006-03-29
Medium Priority
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 143

Accepted Solution

Guy Hengel [angelIII / a3] earned 200 total points
ID: 16322246
abs(-3) => 3

Expert Comment

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

Var = Abs(InVal)

3 = -3
3 = +3

Author Comment

ID: 16322959
thanks I just could not find it


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

873 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