如何将浮点数数组转换为整型数组

请问如何将浮点数数组转换为整型数组?
比如要将A = [1.2 3, 4 5.5]转换为
B = [1 3, 4 6]。怎么做?

julia> a=[1.2 3;4 5.5]
2×2 Array{Float64,2}:
 1.2  3.0
 4.0  5.5

julia> round.(Int,a)
2×2 Array{Int64,2}:
 1  3
 4  6
2 个赞