|
Re: printing FLOAT data type on the terminal window
I don't think it's that bad to use a couple floats, but overuse can lead to slow downs in processing time.
the use of floating point numbers is not native to the PIC, Instead MPLAB uses a software routine to do the math (this is done at compile time), internally everything is probably represented differently. So everytime you do a float there extra steps the processor has to take.
If you want to printf it you could just multiply by 100 or 1000 or however much accuracy you want and then cast it to an int.
__________________
Team 701
|