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 5 matches
CCS Forum Index
Author Message
  Topic: Printf not printing floating point numbers correctly.
CCS newby

Replies: 24
Views: 36906

PostForum: General CCS C Discussion   Posted: Fri Jul 01, 2011 1:30 am   Subject: Printf not printing floating point numbers correctly.
Hi PCM Programmer,
I will try to "break" your program. Please bare with me though, I am very busy at work at the moment so I won't be able to do this straight away.
  Topic: Printf not printing floating point numbers correctly.
CCS newby

Replies: 24
Views: 36906

PostForum: General CCS C Discussion   Posted: Thu Jun 30, 2011 2:01 am   Subject: Printf not printing floating point numbers correctly.
I was using a PIC16F886, compiler version PCM V4.109.
  Topic: Printf not printing floating point numbers correctly.
CCS newby

Replies: 24
Views: 36906

PostForum: General CCS C Discussion   Posted: Wed Jun 29, 2011 9:33 am   Subject: Printf not printing floating point numbers correctly.
I also managed to get rid of the issue by putting more spaces before the %f in between the quotes on the relevant printfs.
  Topic: Printf not printing floating point numbers correctly.
CCS newby

Replies: 24
Views: 36906

PostForum: General CCS C Discussion   Posted: Wed Jun 01, 2011 3:47 am   Subject: Printf not printing floating point numbers correctly.
Thanks for the repsonse.
I am using this line in a function to print a value:
printf("tempf= %f",tempf);
The variable is defined in the function thus: float tempf;
This will not print t ...
  Topic: Printf not printing floating point numbers correctly.
CCS newby

Replies: 24
Views: 36906

PostForum: General CCS C Discussion   Posted: Fri May 27, 2011 7:54 am   Subject: Printf not printing floating point numbers correctly.
I am using printf in a function off main to printf a floating point variable. This does not work work correctly and always prints the variable as 0.00. If I insert a line into the main function to p ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group