Sorry if this seems too simple, but why do I get different results when passing '040' and '40' as an argument?
I'm programming a lathe and arguments are in 1/1000th inches, so '040' is much easier to read.
Thanks,
redmiata
void a_function(int variable_1, int variable_2) {
Serial.print("variable_1 = ");Serial.println(variable_1);
Serial.print("variable_2 = ");Serial.println(variable_2);
}void setup (){
Serial.begin(9600);
}void loop(){
a_function(040,40);
a_function(40,040);
delay(10000);
}