Saturday 23 January 2016

Julia: Get next and previous float values


Functions nextfloat(f), prevfloat(f) are used to next and previous float values to the given number.
julia> nextfloat(1.23456)
1.2345600000000003

julia> prevfloat(1.23456)
1.2345599999999999




Previous                                                 Next                                                 Home

No comments:

Post a Comment