Infinite value?

  • Thread starter Thread starter ORC
  • Start date Start date
O

ORC

I've read somewhere that C# has an representation of the Infinite value but
don't remember where. I need to set a double to Infinite - how to do that?
dValue = Inf; ???

Will an old Visual Basic program that imports the data from my program be
able to understand the 'Infinite' value?

Thanks
Ole
 
Hi Ole,

You are looking for Double.PositiveInfinity or Double.NegativeInfinity.
I don't know if this is the same as the old Visual Basic infinity.
 
Back
Top