I think you can get it with 1.0/0.0 even if INFINITY isn't defined.

On Tue, Oct 21, 2014 at 10:35 PM, Patrick O'Leary <[email protected]>
wrote:

> On Tuesday, October 21, 2014 9:28:16 PM UTC-5, benFranklin wrote:
>>
>> Thanks for answering. I thought I'd ask as there is no Inf double in C
>> <snip>
>>
>
> There is such a thing--as it's just a particular bit pattern interpreted
> as a double. However, it wasn't really convenient until C99, which defines
> INFINITY in math.h, along with a number of other helpful macros for dealing
> with nonfinite floating point numbers.
>

Reply via email to