I reproduced your result in Julia v"0.3.11", but the result from Julia 
v"0.4.0" seems ok. 

julia>  x=-0.000123456799999
-0.000123456799999

julia> signif(x,5)
-0.00012346

julia> VERSION
v"0.4.0"


On Friday, November 13, 2015 at 2:32:21 PM UTC-6, Ritchie Lee wrote:
>
> Hello, 
>
> I am seeing some roundoff error behavior in signif in some instances. For 
> example,
>
> ```julia
> julia> x=-0.000123456799999
> -0.000123456799999
>
> julia> signif(x,5)
> -0.00012346000000000001
> ```
>
> There's a discussion in Issue #3497 and it was closed, but I'm not sure if 
> the issue was fixed.
>
> Thanks!
>

Reply via email to