-
Notifications
You must be signed in to change notification settings - Fork 7
getDouble()
CreateiveRobotics edited this page Mar 7, 2020
·
2 revisions
bool getDouble(float &myDouble)
Try and convert the next item in the payload into a double precision float. If the attempt was successful the result will be written to the myDouble variable, and the method will return true.
example:
int myDouble; if(cmd.getDouble(myDouble)){ cmd.print("Success, my double is: "); cmd.println(myDouble); }