Spin has a float(), I could use an int()
John Abshier
Posts: 1,116
·TICKS_PER_INCH = 36000 / (PI * WHEEL_DIAMETER)· does not work and gives an error of "Floating point not allowed in integer expression"
float(integer expression) casts the interger expression as a float.· It would be nice to be able to say
TICKS_PER_INCH = 36000 / int(PI * WHEEL_DIAMETER)
John Abshier
float(integer expression) casts the interger expression as a float.· It would be nice to be able to say
TICKS_PER_INCH = 36000 / int(PI * WHEEL_DIAMETER)
John Abshier
Comments
TICKS_PER_INCH = 360_000_000 / (31416 * WHEEL_DIAMETER)
-Phil
John Abshier
Sorry... sometimes I just don't have the capacity to resist...