bmbufalo,
@bmbufalo@fosstodon.org avatar

@driscollis Reading that, I assumed that round would treat the .5 and round up both but when I run it in Python I get true. Why is it treating both 1.5 and 2.5 == 2? The documentation makes reference to how floats are treated differently with the round() function, is it related to that?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines