RuiViana

Teste Float

Sep 30th, 2016
230
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data