mpaland / printf

Tiny, fast, non-dependent and fully loaded printf implementation for embedded systems. Extensive test suite passing.
MIT License
2.54k stars 464 forks source link

Floating point printing - how? #125

Closed AVI-crak closed 3 years ago

AVI-crak commented 3 years ago

Good afternoon. I have my own version of printing, which is a highly optimized version of the standard printf. I couldn’t drop the table, but I cut it down a lot. https://github.com/AVI-crak/Rtos_cortex/blob/master/sPrint.h Your version does not use tables, but immediately receives a decimal order value and a ready-made mantissa value. Yes, I read the links - it's dull there. I was able to get the decimal order value without using double precision. But the value of the mantissa cannot be calculated. The general idea of ​​the problem is to perform calculations without floating point, or with minimal use of it. I want to understand how it is counted for repetition in my project.