DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: How to get an absolute value?

  1. #1
    Join Date
    Jul 2000
    Posts
    68
    Could any one tell me how to get the absolute value from Oracle whatever it is negative or positive?

    Thanks.

  2. #2
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    select abs(-1) from dual;

    --
    declare
    n number;
    begin
    n := abs(-1);
    end;

    good luck.

  3. #3
    Join Date
    Jul 2000
    Posts
    68
    Thanks, I got it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width