Frequently Asked Questions
What is the format of floating point numbers?
CCS uses the same format Microchip uses in the 14000 calibration constants. PCW users have a utility PCONVERT that will provide easy conversion to/from decimal, hex and float in a small window in Windows. See EX_FLOAT.C for a good example of using floats or float types variables. The format is as follows:LSB in RAM MSB in RAM 0 00 00 00 00 1 7F 00 00 00 -1 7F 80 00 00 10 82 20 00 00 100 85 48 00 00 123.45 85 76 E6 66 123.45e20 C8 27 4E 53 123.45e-20 43 36 2E 17
To view a floating point type in MPLAB®, insert the first byte of the variable into the watch window and in properties select: 32-bit, MChip Float, High:Low.