Floor quotient vs quotient !!! Is "//" is use for floor quotient how is the question below right ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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)

6th Apr 2021, 7:15 AM
RD:programmer
RD:programmer - avatar
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
6th Apr 2021, 7:22 AM
The future is now thanks to science
The future is now thanks to science - avatar
0
30th Sep 2022, 9:06 AM
QuĆ¢n Kang
QuĆ¢n Kang - avatar
0
//
2nd Oct 2022, 5:50 AM
Sumit Prajapati
Sumit Prajapati - avatar
0
//
5th Nov 2022, 6:38 AM
AGNURU RENUKA
AGNURU RENUKA - avatar