System.Xml.Xsl.XPathConvert.FloatingDecimal.FloatingDecimal C# (CSharp) Méthode

FloatingDecimal() public méthode

public FloatingDecimal ( double dbl ) : System.Diagnostics
dbl double
Résultat System.Diagnostics
            public FloatingDecimal(double dbl) {
                InitFromDouble(dbl);

            #if DEBUG
                if (0 != mantissaSize) {
                    Debug.Assert(dbl == (double)this);

                    FloatingDecimal decAfter = new FloatingDecimal();
                    decAfter.InitFromDouble(Succ(dbl));
                    // Assert(memcmp(this, &decAfter, sizeof(*this) - MaxDigits + mantissaSize));
                    Debug.Assert(!this.Equals(decAfter));

                    FloatingDecimal decBefore = new FloatingDecimal();
                    decBefore.InitFromDouble(Pred(dbl));
                    // Assert(memcmp(this, &decBefore, sizeof(*this) - MaxDigits + mantissaSize));
                    Debug.Assert(!this.Equals(decBefore));
                }
            #endif
            }

Same methods

XPathConvert.FloatingDecimal::FloatingDecimal ( ) : System.Diagnostics