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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top