ExactConversions

Documentation for ExactConversions.jl.

ExactConversions.exactconv — Function
exactconv(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.

source
ExactConversions.maxcommon — Function
maxcommon(I, F) :: I
maxcommon(F, I) :: F

Return 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.

source
ExactConversions.mincommon — Function
mincommon(I, F) :: I
mincommon(F, I) :: F

Return 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.

source