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: PCD: Comparing two floating point numbers
cuma_polat

Replies: 3
Views: 4376

PostForum: General CCS C Discussion   Posted: Sun Jun 28, 2009 6:21 am   Subject: PCD: Comparing two floating point numbers
Yes you are right,

I wrote the wrong code, this is the right one;


#include <30F4013.h>
#device ADC=10
#use delay(clock=10000000)
#FUSES HS
#use rs232(UART2,baud=9600,xmi ...
  Topic: if statement evaluated incorrectly - float type
cuma_polat

Replies: 4
Views: 9413

PostForum: General CCS C Discussion   Posted: Sun Jun 28, 2009 5:19 am   Subject: float type values
Hi,

I have same problem about comparison of two float type values. As you see from the code I wrote very simply in order to calculate big float type number. But the program gives "20" fro ...
  Topic: PCD: Comparing two floating point numbers
cuma_polat

Replies: 3
Views: 4376

PostForum: General CCS C Discussion   Posted: Sun Jan 18, 2009 2:26 pm   Subject: PCD: Comparing two floating point numbers
Hi friends,
I have a very simple problem. I want to compare two float value with "if". example program is here;
#include <30F4013.h>
#device ADC=10
#use delay(clock=10000000&# ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group