julia> round(1.5, RoundDown) # You do not want the default: r::RoundingMode=RoundNearest, would get you 2.0
1.0
julia> trunc(Int64, 1.0) # to get you an integer, i.e. get rid of ".0"
1
You can do similar to this in most contexts, but the rest, e.g. “where” is to work for any type T (that applies, i.e. subtype of Integer), e.g. Int8, not just Int64. This is good to know for generic code, and the standard library wants to be fully generic.