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