Advertisement
RuiViana

Teste Float

Sep 30th, 2016
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. void setup()
  2. {
  3.   Serial.begin(9600);
  4. }
  5.  
  6. void loop()
  7. {
  8.   String Envio;
  9.   char mess[100];
  10.   char Matriz[9];
  11.   double variable = 500;
  12.   Envio = "R$ ";
  13.   dtostrf(variable, 6, 2, mess);
  14.   Envio += mess;
  15.   Envio.toCharArray(Matriz, 9);
  16.  Serial.println(Matriz);
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement