View Single Post
  #5   Spotlight this post!  
Unread 27-03-2013, 15:30
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 945
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Share your Java Utilities and Object Classes

gixxy's is probably superior, but here is a link to a mapping file we use for XBox gamepads (We just use the Joystick class and these mapping values).

Quote:
Does anyone know a simple lib for formatting floating-point numbers since printf is not available?
If you just want to fix to a specific number of decimal points x, you could make a simple helper class/method that multiplies it by 10^x and casts to an integer, then divides it back down to a float... but you probably already thought of that

Last edited by BigJ : 27-03-2013 at 15:35.
Reply With Quote