Thread
:
Autonomous Problems / I'm dumb
View Single Post
#
1
28-03-2016, 22:05
euhlmann
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 361
Re: Autonomous Problems / I'm dumb
Quote:
Originally Posted by
GeeTwo
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)
euhlmann
View Public Profile
Visit euhlmann's homepage!
Find all posts by euhlmann
Find CD-Media Photos by euhlmann
Find CD-Media Papers by euhlmann