CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 4 matches
CCS Forum Index
Author Message
  Topic: float variable with only 2 decimal
trustno1

Replies: 2
Views: 3508

PostForum: General CCS C Discussion   Posted: Sun Jan 06, 2008 1:59 pm   Subject: float variable with only 2 decimal

If you must use float values, you start to run into the problems that the 'edges' for a trimmed value, will not be well defined, depending on the size of the value concerned. If you want 4/5 roundin ...
  Topic: float variable with only 2 decimal
trustno1

Replies: 2
Views: 3508

PostForum: General CCS C Discussion   Posted: Sun Jan 06, 2008 9:56 am   Subject: float variable with only 2 decimal
Hi.
i need to know how truncate a float VARIABLE, for example:

1,23456 ----> 1,23

couse i have to compare values with only two decimal numbers.
Thanks.
  Topic: putc problems with rs232 and motor controller pololu
trustno1

Replies: 4
Views: 6359

PostForum: General CCS C Discussion   Posted: Mon Nov 26, 2007 3:27 am   Subject: putc problems with rs232 and motor controller pololu
Great, it works!!!

Thank you very much. I hope this can help others too!

Gabriele.
  Topic: putc problems with rs232 and motor controller pololu
trustno1

Replies: 4
Views: 6359

PostForum: General CCS C Discussion   Posted: Mon Nov 26, 2007 2:44 am   Subject: putc problems with rs232 and motor controller pololu
Thanks for your reply.

The Pololu controller doesn't support 9200 baud. It supports 9600 baud
or 19200 baud (and other rates)

I mean 9600...and i've tried 19200 too, no result.

The code is: ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group