I have an object (dataOut) defined as a String (CapS)
I am building a string to send to an Xbee but one of the values I am sending is a float. So this line
dataOut += String(fvar); is causing me an ambigous reference.
If I define fvar as INT, it all works fine.
What am I doing wrong ?
Float to String
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- egutting
- Posts: 297
- Joined: Wed Nov 14, 2012 12:57 am
Re: Float to String
Look into dtostrf()...
Please be positive and constructive with your questions and comments.