View Single Post
  #1   Spotlight this post!  
Unread 15-01-2007, 19:48
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Floating Points and rounding

Quote:
Originally Posted by chapmatr View Post
If you're dealing with the FRC controller, you can't deal with signed or floats (unless something's changed), just integers. You'll have to multiply your numbers by 10^n, [i]n/I] of the number of decimals you want. Please, correct me if I'm wrong, this is my first official year as a programmer.
You aren't *supposed* to use floats, because the processor doesn't natively do floating point calculations, but the compiler spits out code that works. I need to learn assembler and look at the output, but I don't have time for that right now. Signed variables are fine AFAIK. They work, too.

JBot
__________________
Aren't signatures a bit outdated?