11-05-2007 09:43 AM
11-05-2007 09:54 AM
11-05-2007 09:55 AM
11-05-2007 10:43 AM
Johnsold is correct.
and GURU is VERY WRONG.
I divided the user input in unches by the inches value of one step to get the number of steps as a DBL, then I forced it into an interger after that.
GURU, if you did it your way it would just round the number, not make it divisible by .0000008.
And thank you,
11-05-2007 10:46 AM
LabViewGuruWannabe wrote:
If you simply want to round the value
11-05-2007 11:12 AM
11-05-2007 12:08 PM
Vr6Fidelity wrote:
So if the user types in .000035" thats 43.75 steps. so that needs to change to 44 steps.
11-05-2007 12:10 PM
I do have this figured all out now.
Altenbach: Just because a number ends in .0000008 does not mean it is divisible by .0000008.
11-05-2007 12:20 PM
He never said make the input end in .000008, if the increment is .000008 and you coerce to the nearest multiple of the increment...then the input value will always be a multiple of .000008
altenbach wrote:
Set the increment to .0000008 and set to coerce. Now whatever is entered will be coerced to an integer multiple of the step size and you don't need to do any math.
11-05-2007 01:05 PM
Why don't you spend 60 seconds and try it out before putting words in my mouth that I never said. 😄
Vr6Fidelity wrote:
Altenbach: Just because a number ends in .0000008 does not mean it is divisible by .0000008.