I have a double value f and would like a way to nudge it very slightly larger (or smaller) to get a new value that will be as close as possible to
This may not be exactly what you want, but you still might find numeric_limits in of use. Particularly the members min(), and epsilon().
I don't believe that something like mydouble + numeric_limits::epsilon() will do what you want, unless mydouble is already close to epsilon. If it is, then you're in luck.