AT90USB1286 and sketch compatibility
I currently have a sketch that converts a float to a string
stringVariable = String(floatVariable, 2);
this code works for arduino uno, or leonardo.
It doesn't work for Industruino 1286. It gives this error:
error: call of overloaded 'String(float&, int)' is ambiguous
Use the dtostrf() arduino built-in function. I found the following in a google search:
Float to string using String class and sprintf %f do not work in Arudino compiler (removed because very slow)
Your answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Keep Informed
About This Forum
This community is for professionals and enthusiasts of our products and services.
Read GuidelinesQuestion tools
Stats
Asked: 12/21/15, 11:37 AM |
Seen: 3011 times |
Last updated: 1/4/16, 4:24 PM |