let
String latitude ="11.8563563753653545638";
how do i convert latitude to double with full digit preserving
let
String latitude ="11.8563563753653545638";
how do i convert latitude to double with full digit preserving
On a standard Arduino, you can't, because doubles are not supported (the keyword "double" is treated the same as "float").
Use of Strings is not recommended on the standard Arduino, as they cause memory problems and program crashes.
Jishnukkakkodi:
let
String latitude ="11.8563563753653545638";how do i convert latitude to double with full digit preserving
Do you want like this?
In UNO :
float x;
x = 11.8563563753653545638;
or
double x;
x = 11.8563563753653545638;