| Thread overview | |||||
|---|---|---|---|---|---|
|
July 08, 2015 Floating point default values. | ||||
|---|---|---|---|---|
| ||||
Hello, I'm sorry if this is a silly question, or if it's answered anywhere (it's really hard googling anything about "d"), but I was wondering what's the reasoning behind NaN being the default value for float/double/real. It only seems to be making things more complicated for no reason. Or is there a purpose to it? Thank you | ||||
July 08, 2015 Re: Floating point default values. | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Charis | On Wednesday, 8 July 2015 at 07:30:44 UTC, Charis wrote: > Hello, > > I'm sorry if this is a silly question, or if it's answered anywhere (it's really hard googling anything about "d"), but I was wondering what's the reasoning behind NaN being the default value for float/double/real. > > It only seems to be making things more complicated for no reason. Or is there a purpose to it? > > Thank you http://www.drdobbs.com/cpp/nans-just-dont-get-no-respect/240005723 | |||
July 08, 2015 Re: Floating point default values. | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Charis Attachments: | On Wed, 08 Jul 2015 07:30:42 +0000, Charis wrote:
> (it's really hard googling anything about "d")
OT: try to use "dlang" instead of simply "d".
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply