Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Forcing Data Types on: July 07, 2012, 10:14:18 pm
I understand the programming error now thanks to dxw00d...
In machining referring to a measurement as "040" (oh-four-oh) is understood to mean 40/1000 or forty thousandths.
2  Using Arduino / Programming Questions / Forcing Data Types on: July 07, 2012, 05:19:26 am
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.


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 (){

void loop(){ 

Pages: [1]