Im trying to do a simple output of position and speed in a program Im working on, but I find that the number of digits it outputs is too long with float, and too short with the short data type (only 1 digit as far as I can see). Ideally, I need a data type that stores four digits, so that my output can be something like
4.235 , 3.141
Is there a simple way of doing this, or will I need to write a function that trims the original data type & puts the numbers directly into a string?