lyhkng6694 lyhkng6694
  • 01-02-2022
  • Computers and Technology
contestada

how to get the whole number of a fraction in python

Respuesta :

goldenstreameryt
goldenstreameryt goldenstreameryt
  • 01-02-2022

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.

Answer Link

Otras preguntas

Does an Off-Duty Police Officer have Authority in US?
An astronaut who weighs 126lb on Earth weighs only21lb on the moon. How much would a person who weights 31lb on the moon weigh on Earth?
If y=2 when x=3. What is the value of y when x=9?
Select the simplified expression for 8(x - 4) - 4(x - 3) + 7x. 11x + 4411x - 711x - 4411x - 20
How many union ships did the Virginia sink?
Wanda, the Channel 1 weather person, said there was a 30% chance of rain on Saturday and a 30% chance of rain on Sunday. Should Wanda be fired? HELP PLEASE
Scientists divide rocks into groups based on_________
The data represent the ages of people working at a store. 19, 27, 20, 26, 20, 24, 32, 23, 20, 19, 21 What is the first quartile of these ages?
Lane is 10 times Mels age.  If the difference in their age is 27, how old is Mel?
Wanda, the Channel 1 weather person, said there was a 30% chance of rain on Saturday and a 30% chance of rain on Sunday. Should Wanda be fired? HELP PLEASE