Go to Post You can admire machines, but you don't really love them... This program has enabled me to make a difference that I believe is good for the future of humans on this planet. - MooreteP [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 15-01-2007, 19:44
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

I am personally using floating points in my code. It hasn't posed a problem, except that you can expect problems with printf related to floating points. Just multiply it by however many decimal places * 10 and printf that typecast as an integer.

Now, I'll warn you now, Al S. (I don't remember all of the last name) is going to give you some heat for using floating points on our non-floating point-native controller... but I see no problems with it...yet. It is bad practice, and I agree with him wholeheartedly, except that I'm too lazy to figure out how to represent what I need as a long/integer. Al, if you have any suggestions, I'd be glad to hear them.

JBot
__________________
Aren't signatures a bit outdated?
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rounding numbers teh_pwnerer795 Programming 13 17-12-2006 12:16
pic: Team 228 and the floating tetra artdutra04 Extra Discussion 8 02-05-2005 19:58
pic: YMTC: 150 points or 100 points? CD47-Bot Extra Discussion 4 25-03-2004 01:53
5 points I make..(and a little excess) archiver 1999 7 23-06-2002 22:18
Awards and points... Ian W. Rules/Strategy 4 24-03-2002 13:30


All times are GMT -5. The time now is 20:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi