Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Definition of floor

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles