Calculates Log
Toolkit:SDCC 8051 Development System
Location:/bipom/devtools/SDCC/examples/lcd/math/log10
#include <stdio.h> #include <8052.h> #include <bipomlib.h> #include <math.h> int main() { float x; /* Set the serial port to 19200 Baud */ serinit(CBR_19200); x = 1000.0; printf( "\n\rLog of %6.2f is %6.2f", x, log10f(x) ); return 0; }