System.Tests.BitConverterTests.SingleToInt32Bits C# (CSharp) Méthode

SingleToInt32Bits() private méthode

private SingleToInt32Bits ( ) : void
Résultat 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