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 3 matches
CCS Forum Index
Author Message
  Topic: float 1 div by 2 == 0 ??
pozzari

Replies: 4
Views: 5468

PostForum: General CCS C Discussion   Posted: Mon May 28, 2012 4:59 pm   Subject: float 1 div by 2 == 0 ??
div_result = (float)part1 / (float)part2 worked fine... thanks a lot
  Topic: float 1 div by 2 == 0 ??
pozzari

Replies: 4
Views: 5468

PostForum: General CCS C Discussion   Posted: Mon May 28, 2012 4:09 pm   Subject: float 1 div by 2 == 0 ??
Very single program running on pic18f452

This displays 0.00 on my debug... why??


void main()
{
float div_result;
int part1;
int part2;

part1 = 1;
part2 = 2;

div_result ...
  Topic: CRC8 (Dallas 1-wire)
pozzari

Replies: 6
Views: 90520

PostForum: Code Library   Posted: Sat Apr 14, 2012 12:05 am   Subject: Don't work with pic12f675
Don't work with pic12f675.

But works fine with other MCU´s.
Thanks
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group