I am running the following example arduino-1.8.12\examples\08.Strings\StringConstructors StringConstructors.ino file. I am programming to an Artemis Apollo 3 mcu provided from sparkfun (lora things plus explorable). For some reason floats will not print right , and i cannot figure out why it is not working. Here is the line of code that is not working:
// using a float and the right decimal places: stringOne = String(5.698, 3); Serial.println(stringOne); // using a float and less decimal places to use rounding: stringOne = String(5.698, 2); Serial.println(stringOne);
Here is the output on the serial monitor:
I cannot figure out why it is printing the format of the value and not the value itself???