BigInteger.Abs(BigInteger) Metoda

Definice

Získá absolutní hodnotu objektu BigInteger .

public:
 static System::Numerics::BigInteger Abs(System::Numerics::BigInteger value);
public:
 static System::Numerics::BigInteger Abs(System::Numerics::BigInteger value) = System::Numerics::INumberBase<System::Numerics::BigInteger>::Abs;
public static System.Numerics.BigInteger Abs(System.Numerics.BigInteger value);
static member Abs : System.Numerics.BigInteger -> System.Numerics.BigInteger
Public Shared Function Abs (value As BigInteger) As BigInteger

Parametry

value
BigInteger

Číslo.

Návraty

Absolutní hodnota value.

Implementuje

Poznámky

Absolutní hodnota čísla je číslo bez znaménka, jak je znázorněno v následující tabulce.

value Parametr Návratová hodnota
value >= 0 value
value < 0 value * -1

Metoda Abs je ekvivalentní Math.Abs metodě pro primitivní číselné typy.

Platí pro

Viz také