int(): what does it mean?

Dear all,

I have a question about the function int():

DataMask = DataMask~( int(DataProv./(2^(n-i))) );
DataProv = DataProv-(2^(n-i))*( int(DataProv[.,1]./(2^(n-i))) );

How does int() work? What does it return?

Thank you in advance for your help.

1 Answer



0



The int command will round the input down to the next lowest integer.

print int(3.9);

will print out:

3.000
print int(-3.9);

will print out:

-3.000

aptech

1,773

Your Answer

1 Answer

0

The int command will round the input down to the next lowest integer.

print int(3.9);

will print out:

3.000
print int(-3.9);

will print out:

-3.000


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.