System.Tests.BitConverterTests.SingleToInt32Bits C# (CSharp) Method

SingleToInt32Bits() private method

private SingleToInt32Bits ( ) : void
return void
        public static void SingleToInt32Bits()
        {
            Single input = 12345.63f;
            Int32 result = BitConverter.SingleToInt32Bits(input);
            Assert.Equal(1178658437, result);
            Single roundtripped = BitConverter.Int32BitsToSingle(result);
            Assert.Equal(input, roundtripped);
        }
    }
BitConverterTests