17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Common Questions & Answers<br />

What is the format of floating point numbers?<br />

<strong>CCS</strong> uses the same format Microchip uses in the 14000 calibration constants. PCW users have a<br />

utility Numeric Converter that will provide easy conversion to/from decimal, hex and float in a<br />

small window in the Windows IDE. See EX_FLOAT.C for a good example of using floats or float<br />

types variables. The format is as follows:<br />

Example Number<br />

0 00 00 00 00<br />

1 7F 00 00 00<br />

-1 7F 80 00 00<br />

10 82 20 00 00<br />

100 85 48 00 00<br />

123.45 85 76 E6 66<br />

365

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!