Beispiel #1
0
 public NumberSemantics(
     NumberKind DefaultKind             = NumberKind.Int32,
     FloatSemantics LongDoubleSemantics = FloatSemantics.X87DoubleExtended,
     FloatSemantics QuadSemantics       = FloatSemantics.IEEEQuad)
 {
     if (!DefaultKind.IsInteger())
     {
         throw new ArgumentException("DefaultKind must be an integer", nameof(DefaultKind));
     }
     this.DefaultKind         = DefaultKind;
     this.LongDoubleSemantics = LongDoubleSemantics;
     this.QuadSemantics       = QuadSemantics;
 }
Beispiel #2
0
 public NumberSemantics()
 {
     DefaultKind         = NumberKind.Int32;
     LongDoubleSemantics = FloatSemantics.X87DoubleExtended;
     QuadSemantics       = FloatSemantics.IEEEQuad;
 }