Exemplo n.º 1
0
 public static UInt64 FromFixedPoint32(int mantissa, int numDigits)
 {
     // TODO: Unsigned comparison could be slightly faster, maybe
     return(numDigits + (Int32.MinValue + BiasedExponentMaxValue - BaseExponent) > (Int32.MinValue + BiasedExponentMaxValue)
                         ? NativeImpl.fromFixedPoint32(mantissa, numDigits)
                         : FromFixedPointFastUnchecked(mantissa, numDigits));
 }