As far I know, that version is antique and therefore the WString implementation might not support floats; the list of candidates seems to indicate that.
I don't know if the Linux version on https://www.arduino.cc/en/software will work on the Pi. If not, a solution might be to copy WString.h and WString.cpp from your Mint system to the Pi (replacing the originals); make backups if needed.