Is the following code block valid ?

```d
float price; /// initialized as float.nan by default ... right ?

if (price == float.nan) {

   /// writeln("initialized");

} else {

   /// writeln("uninitialized");

}
```

if so, the following one should be valid too ... right ?

```d
float price;

if (price != float.nan) {

   /// writeln("initialized");

}
```

Reply via email to