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

please help me with this assignment
a If a nation violated the Treaty of Versailles, what could the League of Nations do about it?
Which of the following is true of the early Clovis and Folsom people in New Mexico?
Does economics help to teach us how to approach problems, or does it provide us with a set of answers to problems? Explain the difference between macroeconomics
What is the author’s purpose for including this sentence?.
b Name a fuel which is stored in tanks and used in cars.​
Reasons why it is important to do proper maintenance and safety of kitchen tools and equipment.
Informational text focuses on providing______to the reader. It explains and describes a topic
A student is planning to make changes to a circuit. Which change will increase the current? A. Replace the wire with one that is thinner. B. Replace the existin
5 The local lumber store is offering 10% off any purchases. If a customer bought $940.00 worth of lumber, what was the cost after the discount?