Skip to main content

Checks if 2 numbers are almost equal

Project description

Checks if 2 numbers (int) are almost equal

from numbers_almost_equal import (
are_numbers_equal,
are_numbers_equal_diff_0_00000001,
are_numbers_equal_diff_0_0000001,
are_numbers_equal_diff_0_000001,
are_numbers_equal_diff_0_00001,
are_numbers_equal_diff_0_0001,
are_numbers_equal_diff_0_001,
are_numbers_equal_diff_0_01,
are_numbers_equal_diff_0_1,
are_numbers_equal_diff_10,
are_numbers_equal_diff_100,
are_numbers_equal_diff_1000,
are_numbers_equal_diff_10000,
are_numbers_equal_diff_100000,
are_numbers_equal_diff_1000000,
are_numbers_equal_diff_10000000,
are_numbers_equal_diff_100000000,)

are_numbers_equal_diff_0_1(number1=0.1, number2=0.2)=True
are_numbers_equal_diff_0_1(number1=0.1, number2=2)=False
are_numbers_equal_diff_0_01(number1=0.01, number2=0.02)=True
are_numbers_equal_diff_0_01(number1=0.01, number2=0.2)=False
are_numbers_equal_diff_0_001(number1=0.001, number2=0.002)=True
are_numbers_equal_diff_0_001(number1=0.001, number2=0.02)=False
are_numbers_equal_diff_0_0001(number1=0.0001, number2=0.0002)=True
are_numbers_equal_diff_0_0001(number1=0.0001, number2=0.002)=False
are_numbers_equal_diff_0_00001(number1=0.00001, number2=0.00002)=True
are_numbers_equal_diff_0_00001(number1=0.00001, number2=0.0002)=False
are_numbers_equal_diff_0_000001(number1=0.000001, number2=0.000002)=True
are_numbers_equal_diff_0_000001(number1=0.000001, number2=0.00002)=False
are_numbers_equal_diff_0_0000001(number1=0.0000001, number2=0.0000002)=True
are_numbers_equal_diff_0_0000001(number1=0.0000001, number2=0.000002)=False
are_numbers_equal_diff_0_00000001(number1=0.00000001, number2=0.00000002)=True
are_numbers_equal_diff_0_00000001(number1=0.00000001, number2=0.0000002)=False
are_numbers_equal_diff_10(number1=10, number2=11)=True
are_numbers_equal_diff_10(number1=10, number2=20)=False
are_numbers_equal_diff_100(number1=100, number2=110)=True
are_numbers_equal_diff_100(number1=100, number2=200)=False
are_numbers_equal_diff_1000(number1=1000, number2=1100)=True
are_numbers_equal_diff_1000(number1=1000, number2=2000)=False
are_numbers_equal_diff_10000(number1=10000, number2=11000)=True
are_numbers_equal_diff_10000(number1=10000, number2=20000)=False
are_numbers_equal_diff_100000(number1=100000, number2=110000)=True
are_numbers_equal_diff_100000(number1=100000, number2=200000)=False
are_numbers_equal_diff_1000000(number1=1000000, number2=1100000)=True
are_numbers_equal_diff_1000000(number1=1000000, number2=2000000)=False
are_numbers_equal_diff_10000000(number1=10000000, number2=11000000)=True
are_numbers_equal_diff_10000000(number1=10000000, number2=20000000)=False
are_numbers_equal_diff_100000000(number1=100000000, number2=110000000)=True
are_numbers_equal_diff_100000000(number1=100000000, number2=200000000)=False

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numbers_almost_equal-0.11.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

numbers_almost_equal-0.11-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file numbers_almost_equal-0.11.tar.gz.

File metadata

  • Download URL: numbers_almost_equal-0.11.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for numbers_almost_equal-0.11.tar.gz
Algorithm Hash digest
SHA256 b64f841d3014ae8d0fcd493854ed4daf6b1ba8211e74bb40ca1e670bc1582f1a
MD5 0ba15de5f7b3c6ce6ef8a68758330d59
BLAKE2b-256 0aae574ee823077f7d01d06b6b73d726bef2a36d6c0fd03a87c56e94e7faf389

See more details on using hashes here.

File details

Details for the file numbers_almost_equal-0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for numbers_almost_equal-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 55b1e6204bc59fbc6108af7e71dbc1d4ae3118f340db2d3d7c06a2e12fc7adfb
MD5 c3c3b5b270a366792566da2efdc08a40
BLAKE2b-256 f22993e46bd0fc302f772c86019872c73b29adac60d685ef9e818639a4be6731

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page