The returned value from std should be zero if all the values are equal 
(since the distance between the mean and the values should be zero). 
However, the returned value isn't zero:

julia> total
0.11008615848501174

julia> mean(Float64[total for i in 1:100])
0.11008615848501173

julia> std(Float64[total for i in 1:100])
1.3947701538996772e-17

julia> std(Float64[total for i in 1:100]) ≈ zero(Float64)
false

julia> mean(Float64[total for i in 1:100]) ≈ total
true


How can I get a more precise result from *std()*?

Best,

Reply via email to