Re: simple question about NaN and FP exceptions
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: simple question about NaN and FP exceptions
- From: Tony Finch <dot@...>
- Date: 2011年2月23日 17:13:03 +0000
On 2011年2月23日, Louis-Philippe wrote:
>
> > v = 1/0
> > print(v)
> inf
>
> not NaN?
Use v=0/0 if you want a NaN.
Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Viking, North Utsire, South Utsire, Northeast Forties: Southeasterly 7 to
severe gale 9, occasionally storm 10 in Viking. Very rough or high in Viking,
otherwise rough or very rough. Rain or snow. Moderate or good, occasionally
poor. Light icing in north and South Utsire.