Find answers to your questions and expand your knowledge with IDNLearn.com. Get thorough and trustworthy answers to your queries from our extensive network of knowledgeable professionals.

how to get the whole number of a fraction in python

Sagot :

Answer:

Using the modulo ( % ) operator. The % operator is an arithmetic operator that calculates and returns the remainder after the division of two numbers. If a number is divided by 1, the remainder will be the fractional part.