0

String Class has a problem

void setup()
{
Serial.begin(9600);
}

void loop()
{
Serial.println(String(2030));
}

I tested above program in arduino. But In ThinkerCAD only showed "2000".

In real arduino, Serial output was "2030".

How can I solve this problem?

 

0 comments

Please sign in to leave a comment.