예제 #1
0
파일: DotNetImpl.cs 프로젝트: noop-dev/DFP
 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));
 }