File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 851851The result of `n` iterative applications of `nextfloat` to `x` if `n >= 0`, or `-n`
852852applications of [`prevfloat`](@ref) if `n < 0`.
853853"""
854- nextfloat (f:: AbstractFloat , d:: Integer ) = _nextfloat (f, isnegative (d) , uabs (d))
854+ nextfloat (f:: AbstractFloat , d:: Integer ) = _nextfloat (f, d < 0 , uabs (d))
855855
856856"""
857857 nextfloat(x::AbstractFloat)
@@ -869,7 +869,7 @@ nextfloat(x::AbstractFloat) = nextfloat(x, 1)
869869The result of `n` iterative applications of `prevfloat` to `x` if `n >= 0`, or `-n`
870870applications of [`nextfloat`](@ref) if `n < 0`.
871871"""
872- prevfloat (x:: AbstractFloat , d:: Integer ) = _nextfloat (x, ispositive (d) , uabs (d))
872+ prevfloat (x:: AbstractFloat , d:: Integer ) = _nextfloat (x, d > 0 , uabs (d))
873873
874874"""
875875 prevfloat(x::AbstractFloat)
You can’t perform that action at this time.
0 commit comments