Table of Contents

Method Abs

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Abs(sbyte)

Returns the absolute value of a 8-bit signed integer (返回 8 位有符号整数的绝对值). No exception, Abs(MinValue) := MinValue .

[CLSCompliant(false)]
public static sbyte Abs(sbyte value)

Parameters

value sbyte

A number (一个数值).

Returns

sbyte

Returns the absolute value (返回绝对值)

See Also

Abs(short)

Returns the absolute value of a 16-bit signed integer (返回 16 位有符号整数的绝对值). No exception, Abs(MinValue) := MinValue .

public static short Abs(short value)

Parameters

value short

A number (一个数值).

Returns

short

Returns the absolute value (返回绝对值)

See Also

Abs(int)

Returns the absolute value of a 32-bit signed integer (返回 32 位有符号整数的绝对值). No exception, Abs(MinValue) := MinValue .

public static int Abs(int value)

Parameters

value int

A number (一个数值).

Returns

int

Returns the absolute value (返回绝对值)

See Also

Abs(long)

Returns the absolute value of a 64-bit signed integer (返回 64 位有符号整数的绝对值). No exception, Abs(MinValue) := MinValue .

public static long Abs(long value)

Parameters

value long

A number (一个数值).

Returns

long

Returns the absolute value (返回绝对值)

See Also

Abs(nint)

Returns the absolute value of a native signed integer (返回本机有符号整数的绝对值). No exception, Abs(MinValue) := MinValue .

public static nint Abs(nint value)

Parameters

value nint

A number (一个数值).

Returns

nint

Returns the absolute value (返回绝对值)

See Also