int() command, does it exist?

User Forumint() command, does it exist?
Giuseppe Alesii asked 4 years ago

I have been using in a code the syntax

x = 161;

n = 16;

b = int(x/n);

I got b = 10.

Checking on the Command Reference Manual, I realized that the int() command does not exist, yet it works!

Has someone an answer to this riddle?

1 Answers
Aptech Staff answered 4 years ago

int is indeed an undocumented function that has the same action as floor. It is recommended to use the floor function since it is documented.