View Single Post
  #4   Spotlight this post!  
Unread 03-28-2016, 10:05 PM
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 298
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Autonomous Problems / I'm dumb

Quote:
Originally Posted by GeeTwo View Post
My favorite way to test around all of the cases where x is not a number is to do something like (x==x && x!=0).


These exist for a reason!
Code:
Double.isNaN(double)
Double.isInfinite(double)
Reply With Quote