Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Unexpected round behavior
#1
Hi, I was using IDLE and trying to do: round(9/2) -- surprised that it says 4.. round(11/2) and round(7/2) all appear correct. How can we explain this behavior? thanks..
Quote
#2
See here: https://docs.python.org/2/tutorial/float...-fp-issues
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  syntax error near unexpected token btom529 5 244 Apr-21-2019, 09:03 PM
Last Post: btom529
  Cant get my head round the algorithm hshivaraj 1 117 Apr-09-2019, 10:38 PM
Last Post: Yoriz
  Getting an unexpected generator object ? mcgrim 19 408 Mar-29-2019, 11:35 AM
Last Post: gontajones
  Dictionary adds an unexpected list erina 1 183 Mar-14-2019, 01:13 PM
Last Post: ichabod801
  unexpected EOF while parsing whatloop 3 368 Mar-09-2019, 06:59 PM
Last Post: whatloop
  Unexpected expected type error result MartinMaker 1 193 Feb-16-2019, 05:02 PM
Last Post: micseydel
  Unexpected ininite loop behavior RedSkeleton007 4 197 Jan-27-2019, 05:32 PM
Last Post: aakashjha001
  unexpected sub result after overloading operator jolinchewjb 1 233 Jan-24-2019, 08:23 AM
Last Post: buran
  unexpected EOF wowo 3 434 Jan-13-2019, 04:36 AM
Last Post: wowo
  google-auth requirements.txt strange behavior randalpinto 3 309 Dec-21-2018, 02:03 AM
Last Post: Larz60+

Forum Jump:


Users browsing this thread: 1 Guest(s)