0
Floor quotient vs quotient !!! Is "//" is use for floor quotient how is the question below right ?
Fill in the blank to output the quotient of dividing 100 by 42. print(100//42)
4 Respostas
+ 1
The floor function is the function that takes as input a real number x, and gives as output the greatest integer less than or equal to x.So for example, if the answer is 34.6 ,converting it to floor will be 34.
here ,when you do print(100/42),the printing quotient will be 2.381(almost).But when you give print(100//42) it works like floor function.So it converts the quotient 2.381 to floor and the prints the answer 2.
If you want to know more about floor and ceiling ,you can have a look at this article:
https://www.maplesoft.com/support/help/view.aspx?sid=2066
0
0
//
0
//