我有两个float64类型的数组,当我将第一个数组的值赋值给第二个数组时,它会舍入该值。下面的简单代码说明了这个问题,并排除了仅仅表示数字的可能性。print'they are equal' print'they are NOT equal'1.90897e-14<type 'numpy.float64'>
<type 'nump
我知道可以使用convert函数将Float64转换为Int64。不幸的是,当将convert应用于2维数组时,它不起作用。julia> convert(Int64, 2.0)2x2 Array{Float64,2}: 3.0 4.0julia> convert(Int64, A)
ERROR: `convert` has no method matching convert(::Type{Int