Advertisement
RuiViana

Array_to_floatt

Dec 13th, 2016
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. float valor;                                              // variável que armazenara o valor
  2. float Value[6] = {1, 2, 3, 4, 5, 6};               // array que armazena os caracteres separadamente
  3. //----------------------------
  4. void setup()
  5. {
  6.   Serial.begin(115200);
  7. }
  8. //----------------------------
  9. void loop()
  10. {
  11.   valor = (Value[0] * 1000) + (Value[1] * 100) + (Value[2] * 10) + (Value[3]) + ((((Value[4]) * 10) + (Value[5])) / 100);
  12.   Serial.println(valor);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement