Table of Contents

Method SingleToInt32Bits

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

SingleToInt32Bits(float)

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

public static int SingleToInt32Bits(float value)

Parameters

value float

The number to convert (欲转换的值).

Returns

int

A 32-bit integer whose bits are identical to value (一个32位整数,表示转换的单精度浮点值).