I have the following code…
if (Price_Foreign != Double.NaN) { output.Append(spacer); output.Append(String.Format('{0,-10:C} USD',Price_Foreign)); }
Which outputs:
NaN USD
What gives?
I’m using Double.NaN to indicate that the value doesn’t exist, and shouldn’t be output.
Perhaps you are looking for the
IsNaNstatic function?Try something like this: