|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Autonomous Problems / I'm dumb
Quote:
These exist for a reason! Code:
Double.isNaN(double) Double.isInfinite(double) |
|
#2
|
|||||
|
|||||
|
Re: Autonomous Problems / I'm dumb
Calling two negatively phrased language-dependent methods is better than one comparison? If there were an isFinite() method, I would consider using it.
|
|
#3
|
||||
|
||||
|
Re: Autonomous Problems / I'm dumb
Better than using x==x, which seems hacky and is surely platform/implementation dependent. It's better not to introduce hard-to-diagnose bugs in your code.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|