Table of Contents

Class MathBitConverter

Namespace
Zyl.VectorTraits.Numerics
Assembly
VectorTraits.dll

Math functions of BitConverter (BitConverter 的数学函数).

public static class MathBitConverter
Inheritance
MathBitConverter
Inherited Members

Methods

DoubleToInt64Bits(double)

Converts a double-precision floating-point value into a 64-bit integer (将单精度浮点值转换为 64 位整数).

DoubleToUInt64Bits(double)

Converts a double-precision floating-point value into a 64-bit unsigned integer (将指定的单精度浮点数转换为 64 位无符号整数).

HalfToInt16Bits(Half)

Converts a half-precision floating-point value into a 16-bit integer (将半精度浮点值转换为 16 位整数).

HalfToUInt16Bits(Half)

Converts a half-precision floating-point value into a 16-bit unsigned integer (将指定的半精度浮点数转换为 16 位无符号整数).

Int16BitsToHalf(short)

Reinterprets the specified 16-bit signed integer value as a half-precision floating-point value (将指定的 16 位有符号整数值重新解释为半精度浮点值).

Int32BitsToSingle(int)

Reinterprets the specified 32-bit signed integer value as a single-precision floating-point value (将指定的 32 位有符号整数值重新解释为单精度浮点值).

Int64BitsToDouble(long)

Reinterprets the specified 64-bit signed integer value as a double-precision floating-point value (将指定的 64 位有符号整数值重新解释为单精度浮点值).

SingleToInt32Bits(float)

Converts a single-precision floating-point value into a 32-bit integer (将单精度浮点值转换为 32 位整数).

SingleToUInt32Bits(float)

Converts a single-precision floating-point value into a 32-bit unsigned integer (将指定的单精度浮点数转换为 32 位无符号整数).

UInt16BitsToHalf(ushort)

Reinterprets the specified 16-bit unsigned integer value as a half-precision floating-point value (将指定的 16 位无符号整数转换为半精度浮点数).

UInt32BitsToSingle(uint)

Reinterprets the specified 32-bit unsigned integer value as a single-precision floating-point value (将指定的 32 位无符号整数转换为单精度浮点数).

UInt64BitsToDouble(ulong)

Reinterprets the specified 64-bit unsigned integer value as a double-precision floating-point value (将指定的 64 位无符号整数转换为单精度浮点数).

See Also