ExactConversions

Documentation for ExactConversions.jl.

ExactConversions.exactconvFunction
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.maxcommonFunction
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.mincommonFunction
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