Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

demstavrou, to python
@demstavrou@fosstodon.org avatar

TIL of Python's math.isclose() which allows you to determine if two values are close, given a tolerance.

You can provide relative tolerance which takes into account the magnitude of the numbers. You can also provide an absolute tolerance.

https://docs.python.org/3/library/math.html#math.isclose

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