What's new

I can't get int(x) to work for me

Terry Pea

Member
I can't get int(x) to work for me

I am trying to set up a very simple formula and am stopped by the integer command.

I first tried the following, where Pocket_Ht=.5 and the result was 3.937"
int(Pocket_Ht*8)
The result should have been 4.

When I use another simple, all numeric formula int(3*1.1) the result is 1.181"
Shouldn't it be 3??

What's up with this?

Terry
 

MikeHenry

Alibre Super User


As a possible clue, 3.937*25.4 = 99.9998 so maybe there is some sort of metric/decimal problem.

Also, 1.181*25.4 = 29.9974 and might well be 30.000 if there were more significant digits known on the 1.181 value. Again, it sounds like a possible metric/decimal problem.

Mike
 

indesign

Alibre Super User


:lol:

My biggest gripe has been trying to figure the usage of the equation editor.

If the type is dimension then you get real screwy things.
int(1.000000)=0.393701 ---------(look familiar)
int(1.000000")=0.787402 :?

Break this down and see what happens. Suppose Alibre is screwed up a little and I am working inch and Alibre by code is working in metric.

int of 1= 1 then / 2.54 = 0.393701

Alibre converted from a metric number (centimeter) to inches. So to get this to work do this

int(3.456000)in =3.000000



And yes the only difference is the " mark meaning inch instead of a numeral 1. But also you can replace the " to get this too.
int(1.000000 in)=0.787402

You can also go further and use the foot symbol '

BTW: If you use the function on a Count or Scale it works but on an Angle you will be shocked[/b]
 
Top