In the Reflector extract for Microsoft.VisualBasic
it references Microsoft.VisualBasic.Conversion.Fix
in 3 places not including the Fix(Object)
overload.
In each case it applies Math.Round
to the result. (Especially in DateAdd
and DateDiff
; the third use in Choose
does subtract 1
, and redundantly cast to Double
again before applying Round
.)
When can Math.Round(Conversion.Fix(x)) <> Conversion.Fix(x)
for Double x
?
(I'd check the Reference Source myself but I can't find a download that does include Microsoft.VisualBasic
.) Reference Source now available online.