Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Value , if condition
#7
You replied before I could. Python2's division kept the type, so an int divided by an int produced an int result. Python3 "fixed" that, by always having division give float results.

You should look into using python3, python2 has just slightly more than a year of bugfixes left, before it's abandoned: https://pythonclock.org/
Reply


Messages In This Thread
Value , if condition - by mitmoot - Dec-07-2018, 04:59 PM
RE: Value , if condition - by nilamo - Dec-07-2018, 05:13 PM
RE: Value , if condition - by Larz60+ - Dec-07-2018, 05:16 PM
RE: Value , if condition - by mitmoot - Dec-07-2018, 05:17 PM
RE: Value , if condition - by Gribouillis - Dec-07-2018, 05:22 PM
RE: Value , if condition - by mitmoot - Dec-07-2018, 05:26 PM
RE: Value , if condition - by nilamo - Dec-07-2018, 06:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  else condition not called when if condition is false Sandz1286 10 5,913 Jun-05-2020, 05:01 PM
Last Post: ebolisa
  [HELP] Nested conditional? double condition followed by another condition. penahuse 25 8,017 Jun-01-2020, 06:00 PM
Last Post: penahuse

Forum Jump:

User Panel Messages

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