Skip to main content
Tweeted twitter.com/StackArduino/status/1390229878285418498

eval() function for arduinoArduino?

iI plan to do the following:

void setup(){
 
  String term = "12 + (2 * 5)";
  int result = eval(term); // eval function (from pythonPython)
  Serial.println(result); // expectexpecting 22
 
}

howeverHowever there is no eval function. Are there any alternatives?

eval() function for arduino?

i plan to do the following:

void setup(){
 
  String term = "12 + (2 * 5)";
  int result = eval(term); // eval function (from python)
  Serial.println(result); // expect 22
 
}

however there is no eval function. Are there any alternatives?

eval() function for Arduino?

I plan to do the following:

void setup(){
  String term = "12 + (2 * 5)";
  int result = eval(term); // eval function (from Python)
  Serial.println(result); // expecting 22
}

However there is no eval function. Are there any alternatives?

Bumped by Community user
Source Link
loucket
  • 41
  • 1
  • 2

eval() function for arduino?

i plan to do the following:

void setup(){

  String term = "12 + (2 * 5)";
  int result = eval(term); // eval function (from python)
  Serial.println(result); // expect 22

}

however there is no eval function. Are there any alternatives?