# System.Abs(Decimal) Method
> Version: _Available or changed with runtime version 1.0._
Calculates the absolute value of a number (Decimal, Integer or BigInteger). ABS always returns a positive numeric value or zero.
## Syntax
```al
NewNumber :=   System.Abs(Number: Decimal)
```
> NOTE
> This method can be invoked without specifying the data type name.
## Parameters
Number
Type: ../decimal/decimal-data-type
The input value.
## Return Value
NewNumber
Type: ../decimal/decimal-data-type
## Remarks
The system automatically converts all of the numeric data types for you.
## Example
This example shows how to remove the sign from a negative numeric value.
```al
var
    x: Decimal;
    y: Decimal;
    Text000: Label "x = %1, y = %2";
begin
    x := -10.235; // x is assigned a negative value
    y := ABS(x); // y is assigned the value of x without sign
    Message(Text000, x, y);
end;
```
The message window displays the following:
x = -10.235, y = 10.235
## Related information
system-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/system/system-abs-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/system/system-abs-method/
