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 support@ccsinfo.com

Negative float Number

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Prashant Patel



Joined: 19 Jul 2004
Posts: 33

View user's profile Send private message

Negative float Number
PostPosted: Tue Sep 21, 2004 9:40 pm     Reply with quote

Can anybody help it out....!!

Is it require to write signed for negative float..??

How negative float can be declared..??

What is its range when we declare it as signed float..??

Can we write signed float same way as normal float in the EEPROM..??

Or we need to do something extra for signed negative float number..??

Regards
Prashant
bdavis



Joined: 31 May 2004
Posts: 86
Location: Colorado Springs, CO

View user's profile Send private message

PostPosted: Tue Sep 21, 2004 10:37 pm     Reply with quote

Just use float. It is possible to do a signed and unsigned float, but you would need to make your own routines and it would be a lot of work...
Currently there is IEEE type and a Microchip type that is commonly used in PIC's - both include pos/neg numbers for type float (without signed prefix in declaration). Write some test programs and you will learn lots more Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group