Re: Where is floating point next{Up,Down}?

2017-01-18 Thread pineapple via Digitalmars-d-learn

On Tuesday, 17 January 2017 at 23:41:27 UTC, Nordlöw wrote:

On Tuesday, 17 January 2017 at 23:38:46 UTC, Ali Çehreli wrote:

Found'em! :)

  https://dlang.org/phobos/std_math.html#.nextUp


Thanks!


(Shouts into the soundless void) 
https://github.com/pineapplemachine/mach.d/blob/master/mach/math/floats/neighbors.d


Where is floating point next{Up,Down}?

2017-01-17 Thread Nordlöw via Digitalmars-d-learn

I can't find nextUp(x) and nextDown(x) described in

https://dlang.org/d-floating-point.html

Are these D1 only? Is there anything like it in D2/Phobos?