I am doing a Current, Voltage Measuring project using INA219 Current Sensor and using STM8S103F3P Mini Development Board. And monitoring the data in Serial Monitor. But I am not able to read/write Floating Values. For Eg: If the multimeter measures 21.28 mA then I am only getting 21 when I use int or long int. And if I use float then random symbols like "????" occur in the serial monitor.
What can I do to print floating values or how can I print values more precisely?
What can I do to print floating values or how can I print values more precisely?