Exemplo n.º 1
0
        public static DimensionfulQuantity operator /(double a, DimensionfulQuantity b)
        {
            b = b.TreatedAsUnbiasedDifference;

            (var newPrefix, var remainingFactor) = SIPrefix.FromDivision(SIPrefix.None, b.Prefix);

            return(new DimensionfulQuantity(
                       remainingFactor * a / b.AsValueInSIUnits,
                       newPrefix,
                       Dimensionless.Unity.Instance / b.Unit.SIUnit));
        }
Exemplo n.º 2
0
        public static DimensionfulQuantity operator /(DimensionfulQuantity a, DimensionfulQuantity b)
        {
            a = a.TreatedAsUnbiasedDifference;
            b = b.TreatedAsUnbiasedDifference;

            (var newPrefix, var remainingFactor) = SIPrefix.FromDivision(a.Prefix, b.Prefix);

            return(new DimensionfulQuantity(
                       remainingFactor * a.AsValueInSIUnits / b.AsValueInSIUnits,
                       newPrefix,
                       a.Unit.SIUnit / b.Unit.SIUnit));
        }