示例#1
0
        public unsafe void TestToFloat()
        {
            var d = 566.15f;
            var q = new QStringRef("566.15");
            var w = q.ToFloat();

            Assert.AreEqual(d, w);
        }
示例#2
0
        public void TestToFloat()
        {
            var   d = 566.15f;
            float w;

            using (var q = new QStringRef("566.15"))
            {
                w = q.ToFloat();
            }

            Assert.AreEqual(d, w);
        }
示例#3
0
        public unsafe void TestToFloat()
        {
            var d = 566.15f;
            var q = new QStringRef("566.15");
            var w = q.ToFloat();

            Assert.AreEqual(d, w);
        }