If I have a
Decimal, what’s the best way to convert it to a
Numeric 2 ?
fromNumeric (roundCommercial 2 d)
roundToNumeric RoundingDown (fromNumeric d)
Option 4 is listed for completeness but one should not use it as it fails if
d has more than 2 decimal places). Is option 1 performing a conversion to BigNumeric under the hood or similar to 3? Option 1, gives you more control over the rounding (one could
roundBankers), but not nearly as many options as the RoundingMode utilized by 2.