I found that printing floating is a bit harder than it needs to be.
The following is an example of how it can be done:
Serial.println((float)(2.789),1); // This will print: “2.8”
The 2.789 is the floating value that you want to print and the 1 after the comma is the number of decimal value you would like to display.
Interesting! Thank you very much for your explanation