Does Micro C compiler support floating point?Does Micro C include “math.h” and related functions?
No, Micro C is an integer only (non floating point) implementation of C. This means that it does not support the “float” and “double” types, and does not include “sin(), cos(), tan(), log() etc.” functions. The decision not to support floating point was made partly because it simplifies type conversions and reduces the size of the runtime library, but mainly because floating point is inefficient and usually unnecessary in most embedded systems. All of the development kits do include a long integer library, which can perform fast integer arithmetic on numbers of up to 256 bytes (2048 bits) in length. Many/most projects for which the programmer wishes to use floating point can often be more efficiently implemented with scaled large integers. The 8051 compiler does include a floating point library, which was made available by one of the customers.