Author |
Message |
Topic: float variable with only 2 decimal |
trustno1
Replies: 2
Views: 3508
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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:
... |
|