www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Where is floating point next{Up,Down}?

reply =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
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?
Jan 17
parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 01/17/2017 03:30 PM, Nordlöw wrote:
 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?
Found'em! :) https://dlang.org/phobos/std_math.html#.nextUp Ali
Jan 17
parent reply =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Tuesday, 17 January 2017 at 23:38:46 UTC, Ali Çehreli wrote:
 Found'em! :)

   https://dlang.org/phobos/std_math.html#.nextUp
Thanks!
Jan 17
parent pineapple <meapineapple gmail.com> writes:
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
Jan 18