I have serial communication set up for a motor controller. I am outputting much data (current, temperature, voltage, etc.) and would like to NOT require the user to think, "Oh yeah, I need to move the decimal two places to the left before writing my answer down." I am working with a stm32F1, lots of processing power, but my boss says not to use floating point during this project.
I KNOW that the decimal will ALWAYS be shifted one, two, or three decimals to the left. Is there a way to make decimal format outputted?
I am using a standard _IO_putchar() function and printf() to output data.
Thanks in advance for any help!
I KNOW that the decimal will ALWAYS be shifted one, two, or three decimals to the left. Is there a way to make decimal format outputted?
I am using a standard _IO_putchar() function and printf() to output data.
Thanks in advance for any help!