ExactConversions
Documentation for ExactConversions.jl.
ExactConversions.exactconv — Functionexactconv(I, x::F) :: Union{I,Nothing}
exactconv(F, x::I) :: Union{F,Nothing}Convert between integer and floating-point types. The conversion suceeds only if it does not change the numeric value, otherwise it returns nothing.
ExactConversions.maxcommon — Functionmaxcommon(I, F) :: I
maxcommon(F, I) :: FReturn the largest number that is representable by both the integral type I and the floating-point type F. The type of the result depends on the order of the arguments.
ExactConversions.mincommon — Functionmincommon(I, F) :: I
mincommon(F, I) :: FReturn the smallest number that is representable by both the integral type I and the floating-point type F. The type of the result depends on the order of the arguments.