Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple arithmetic question
#5
That page appears to not agree with your logic:
Quote:Round down for a dollar amount that has 0 to 49 cents. For example, $89.27 rounds down to $89.

So 12.45 should round down to 12 if you're rounding to whole dollars according to that page because 45 is between 0 and 49.
Reply


Messages In This Thread
Simple arithmetic question - by ebolisa - Dec-15-2021, 01:53 PM
RE: Simple arithmetic question - by deanhystad - Dec-15-2021, 02:22 PM
RE: Simple arithmetic question - by ebolisa - Dec-15-2021, 02:39 PM
RE: Simple arithmetic question - by Gribouillis - Dec-15-2021, 04:26 PM
RE: Simple arithmetic question - by bowlofred - Dec-15-2021, 04:26 PM
RE: Simple arithmetic question - by deanhystad - Dec-15-2021, 04:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Very Beginner question on simple variables Harvy 1 339 Apr-12-2024, 12:03 AM
Last Post: deanhystad
  Simple Question - ' defined as "a". ?' Ryan012 10 1,849 May-27-2023, 06:03 PM
Last Post: Ryan012
  Very simple question about filenames and backslashes! garynewport 4 2,133 Jan-17-2023, 05:02 AM
Last Post: deanhystad
  Python Tkinter Simple Multithreading Question AaronCatolico1 5 1,759 Dec-14-2022, 11:35 PM
Last Post: deanhystad
  A simple "If...Else" question from a beginner Serena2022 6 1,850 Jul-11-2022, 05:59 AM
Last Post: Serena2022
  Evaluating arithmetic expression with recursion. muddybucket 3 2,954 Dec-17-2021, 08:31 AM
Last Post: deanhystad
  Simple code question about lambda and tuples JasPyt 7 3,504 Oct-04-2021, 05:18 PM
Last Post: snippsat
Big Grin question about simple algorithm to my problem jamie_01 1 1,756 Oct-04-2021, 11:55 AM
Last Post: deanhystad
  Magic Method Arithmetic Operators ClownPrinceOfCrime 3 2,402 Jan-10-2021, 03:24 PM
Last Post: ndc85430
  Simple question 1234 4 2,367 Dec-04-2020, 12:29 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020