We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff978e6 + ca931b9 commit f1f0bd1Copy full SHA for f1f0bd1
src/derivatives/scalars.jl
@@ -116,3 +116,6 @@ end
116
end
117
return nothing
118
119
+
120
+Base.prevfloat(r::TrackedReal) = r - eps(value(r))
121
+Base.nextfloat(r::TrackedReal) = r + eps(value(r))
0 commit comments