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: sprintf for float
kris

Replies: 19
Views: 20480

PostForum: General CCS C Discussion   Posted: Tue Jun 16, 2009 10:57 pm   Subject: Do I miss some header files
Here is the headers I include. Any header files missing to call sprintf ?
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <math.h>
//#include <stdio.H ...
  Topic: sprintf for float
kris

Replies: 19
Views: 20480

PostForum: General CCS C Discussion   Posted: Tue Jun 16, 2009 10:53 pm   Subject: I am using diPic33FJ256GP506
I am using diPic33FJ256GP506. We have no problem with PCWH Ver3.236 with PIC18FXXX.
Since diPic33FJ256GP506 required the upgraded compiler we just bought it found sprintf failed.
Thanks!
  Topic: sprintf for float
kris

Replies: 19
Views: 20480

PostForum: General CCS C Discussion   Posted: Tue Jun 16, 2009 10:30 pm   Subject: sprintf for float
Hi there,
I am using PCWHD ver4.093 (latest) but each time when I call:
sprintf(string, "%1.0f", float_value);
The system resets/restart/crash.
Can anybody tell me what's wrong? ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group