Relations: Parameter defined as INTEGER changes to REAL
I'm working in Creo 4.
I have a parameter numSets, that I define as an Integer.
Now, I calculate the value of that parameter using dimensions of the model in the following relation:
numsets = ( lenmain - 2 * dxsltstrt ) / ( 2 * diaslot ) - 2
Here's the part that irks me. After the relation has been entered and evaluated, Creo changes my parameter from Integer to Real, assigning it a value that has a fractional component to it.
The expected behavior, based upon every other programming language I've used, is for the type of parameter to be left as I defined it and the value be rounded or truncated to a whole INTEGER value. Switching the parameter type is absolutely NOT an acceptable result.
Knowing this, I'm going to have to be careful to explicitly use floor() or ceil() to restrict the assigned value.
Why is this kind of tomfoolery type conversion built into Creo?

