Description
In theory, the number of fractional bits f
can be countlessly large, but what is the actual upper limit?
I assumed that it is 8sizeof(T)-1
for Fixed{T}
, and 8sizeof(T)
for Normed{T}
.
However, the larger numbers are also used actually.
FixedPointNumbers.jl/test/fixed.jl
Line 63 in 7ad0f0c
FixedPointNumbers.jl/test/fixed.jl
Line 96 in 7ad0f0c
FixedPointNumbers.jl/test/fixed.jl
Line 110 in 7ad0f0c
FixedPointNumbers.jl/test/fixed.jl
Line 138 in 7ad0f0c
Perhaps some functions do not work properly with large f
, due to implicit upper limits.
Edit:
I intend to support Fixed{T,f}
where f == 8sizeof(T)
, i.e. throw no exceptions. However, they have no typealias and will not be tested enough.