예제 #1
0
 public static Number ReadFromRow(CardDataset.RegisterRow rr)
 {
     // We don't want to expose the mantissa + exponent representation except for storage.
     // Note that we don't assume that the number in the row is normalized.  Among other
     // things, it helps for compatibility with version 1.8.  See Card for details.
     return(new Number(rr.Mantissa, rr.Exponent));
 }
예제 #2
0
 public void WriteToRow(CardDataset.RegisterRow rr)
 {
     // We don't want to expose the mantissa + exponent representation except for storage.
     rr.Mantissa = sign * mantissa;
     rr.Exponent = (sbyte)exponent;
 }