Resources

int() command, does it exist?

0

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?

asked December 4, 2012

1 Answer

0

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.