Hi,
In base/float.jl I don’t understand the definition of floor: Here
floor(::Type{T}, x::AbstractFloat) where {T<:Integer} = trunc(T,round(x, RoundDown))
I don’t get the round. What I understood is: trunc(.) = round(., RoundDown)
but I am probably missing something.
Thank you for the help.
5 posts - 3 participants