Least Significant Digit Delta
Project description
LSDelta - Least Significant Digit Delta
lsdelta is a simple little library that provides a single function:
lsdelta(a :str|bytes, b :str|bytes) -> int
This function takes two decimal numbers stored as strings, pads them both to the same length after the decimal point, and then removes the decimal point and subtracts them, giving you the difference in their least significant digits.
>>> from lsdelta import lsdelta
>>> lsdelta("399.999","400")
-1
>>> lsdelta("1035.349", "1035.35")
-1
>>> lsdelta("1035.110", "1035.1")
10
Author, Copyright, and License
Copyright (c) 2024 Hauke Daempfling (haukex@zero-g.net) at the Leibniz Institute of Freshwater Ecology and Inland Fisheries (IGB), Berlin, Germany, https://www.igb-berlin.de/
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for lsdelta-0.9.0-cp313-cp313-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | e1d41f08da4165ed5a971d034c2bc5394c4a689e8aa24a666dcda2450cf85885 |
|
| MD5 | 41089f4c7d59ad6de731cae02eac4dd1 |
|
| BLAKE2b-256 | 66d757182981710370b711ebd55fb055bb25d9c8791db0a6c2e73ef4b280612b |
Hashes for lsdelta-0.9.0-cp313-cp313-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | e329bcaa05f31dfc418bedddb16f91d249cf68bb9b4bec8551e88ce156308dc9 |
|
| MD5 | c1fa52d90a29f77bd909ae0de6eebeb4 |
|
| BLAKE2b-256 | 536f282dc4f604a7d02c51862374c4cc5632ac0d6a79d1c12a94529d3318aef9 |
Hashes for lsdelta-0.9.0-cp313-cp313-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 855424fdbd6fed768a93f73d10ebf91c6867b6bd3ba20f93145c26126bb5efbb |
|
| MD5 | 5a408b34a60487da99053945ceeade41 |
|
| BLAKE2b-256 | 2428f3a9dbb6337d325d646222192921ce209d243b32d7be93f975267472523b |
Hashes for lsdelta-0.9.0-cp313-cp313-musllinux_1_2_i686.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | b963725e16e76eb0433a7cad3fb4565694ab19568fd4bdfabd845a3f87003163 |
|
| MD5 | e536a009351a0a413bc6ac43bf6cfb01 |
|
| BLAKE2b-256 | a0c444c0e795bbef01b96a6d4b6e629cc1aa2dbd7f9dc7ee56a76ed0fee8f0c2 |
Hashes for lsdelta-0.9.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 4ec59196b6bf2da7f534496c9010b0e7bd5f1ad9760875fb263ce7f145aa473c |
|
| MD5 | a603104549ae3d58fe481e214ffc9cda |
|
| BLAKE2b-256 | 642c31be36f0d6b47e99d62f987eeb66390b40b076bbb0d35f5068a85fff3a60 |
Hashes for lsdelta-0.9.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | c6cceb68b4c88214176c07f0b86508fba4e5575df3b3071904fef3d0b17140a6 |
|
| MD5 | e53895a3485e62be125fd30731ae9a47 |
|
| BLAKE2b-256 | e474aefeeadcb7388c9aa2b01affb0be440511420a05c596c6b84f88ae2b5972 |
Hashes for lsdelta-0.9.0-cp313-cp313-macosx_11_0_arm64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 4438eb0683f5cf9ddcbd6b9ae1a79f234b6c6f47ee18fa075f1a9949541d8c27 |
|
| MD5 | 432bdbcd18dda6f907d94d81171c4f0a |
|
| BLAKE2b-256 | 2f6e7a84ebe4ee3c092cd541610bc3791b0cfbea78ccb42fd2bbe50824289348 |
Hashes for lsdelta-0.9.0-cp313-cp313-macosx_10_13_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 3e4f5aa7f68113496849def91e1291581d2a5f0e07d87cd380017a9a58656df5 |
|
| MD5 | a108d33c9a3bdcdf30d2c0062b6cc7e7 |
|
| BLAKE2b-256 | 865ba2d940b3d0077fe2335b208714b95edf2a8409fac67cc737a0dd6924f29d |
Hashes for lsdelta-0.9.0-cp312-cp312-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 5805cef917fe8e5646ddc0f5f65f69d12f013f70bc97fa741ee51a00c26f06f4 |
|
| MD5 | 19df52eeeb7d6757b1bd63a2b5ca154b |
|
| BLAKE2b-256 | 4b9cf6c7ac6067fb11a80b46ac2fa0aa255fc6a130d37cde75b2a85e8c356bd7 |
Hashes for lsdelta-0.9.0-cp312-cp312-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | fc24cbdcaa3c9e8265c91aa40421994e466843f316e4b8941dcc1c19ebe65c73 |
|
| MD5 | e4aed763f96a819f437fc43a6da74fe2 |
|
| BLAKE2b-256 | d703c12d0f2ce758f4b8bcfdcfb0a60377f2b28f47be073236b511e913f579cc |
Hashes for lsdelta-0.9.0-cp312-cp312-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | c1f258680bb7bc5c67ba39d9d6b158584dc5af606cb432e01d4c6258eceba8eb |
|
| MD5 | 130fce24d039cc3f29d1681ccadd25e0 |
|
| BLAKE2b-256 | 7d2bf544538d4b0f7e8909c2918aeb61ed5f28d1b4bdf6fc9b50b544519ec568 |
Hashes for lsdelta-0.9.0-cp312-cp312-musllinux_1_2_i686.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | ef2a2deaf4d72f70e2cd344a23e1c3fda56696330e8a476e8638c8083443d9c3 |
|
| MD5 | 03d9897227a9fac4220c37c4b3f7b618 |
|
| BLAKE2b-256 | f9b141e3198789d765b0c3b1f6a92a3b7635af207212675488eec8bc3ef22e51 |
Hashes for lsdelta-0.9.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 9e30367ff7a86801d19225fde06bce1f2d4479a73a6a4f5cd8b16baf86436448 |
|
| MD5 | 62cf1f49c749e3c3b7a7a733ea6436db |
|
| BLAKE2b-256 | 9926f29b3b249984367dab79ee5381fd768296dc0e162b186d61ed65ee4689d5 |
Hashes for lsdelta-0.9.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | a687872b149ec464b9a8fc9702743179a41427b34a522161adb695d3cdaa1864 |
|
| MD5 | d6faea3c4733b24d2b46a97611236d0a |
|
| BLAKE2b-256 | d3d4f5f9925e801dd1d32dc4f781fb2025a2a4bf00e271203feedc129038143a |
Hashes for lsdelta-0.9.0-cp312-cp312-macosx_11_0_arm64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | be4a00943a903f22b084d6a31f1cca52ddbc29b4b812e0f9ca929db48aa95041 |
|
| MD5 | c6d7def2d76a62673e31cf014da0e23a |
|
| BLAKE2b-256 | 0d46ee77ba5c4c3fe5b5bdd79f15fdd2d3088f64cf493cf46752e80612dd865e |
Hashes for lsdelta-0.9.0-cp312-cp312-macosx_10_13_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | db54cf0314439fd23074673953babec853db2f88298ee5c162aba06a75a273f9 |
|
| MD5 | 5e5235b37794c95868db04e57992ff6a |
|
| BLAKE2b-256 | dfbf787e87702742d5c28eedeef1e6d66a4fcd25e10dc679253ff0c260cd8aef |
Hashes for lsdelta-0.9.0-cp311-cp311-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | f9d11cfb4ee0c65414cd9bac8d16f1fdb3d71b710eb29fd7405913ff02f4a84d |
|
| MD5 | bfcf83388699df36025a98eead043ed9 |
|
| BLAKE2b-256 | 669dfcc38206799f69d6b18159c7cfa2822de1be91626e6d79f5cfb8cd7ce77c |
Hashes for lsdelta-0.9.0-cp311-cp311-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 837e695d5900087272908ebd568adba7268e4e72d70abc225b4ef067aea8d370 |
|
| MD5 | 9d1b3b4dff851f4a25b40d07c8e6960e |
|
| BLAKE2b-256 | 63ec20b28f0cd0553d1dcfc6c7d6231994d079ce8d7d04d113b60c0446d8e54d |
Hashes for lsdelta-0.9.0-cp311-cp311-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 05786483fcc5cd8c2c57ef1b6f14c22bddf7988d02df37830ca79654e615e9e3 |
|
| MD5 | 3bfb2e09cf07f43190e486d77ad6864f |
|
| BLAKE2b-256 | 5a56fa71b3c6052852a432a89525dab3a658f8ecf8e7454b52c5d76eb2ce2e97 |
Hashes for lsdelta-0.9.0-cp311-cp311-musllinux_1_2_i686.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | f0bb929da7326c1001d9e3751bd2cc520b31a936b678165ab23cc24766107e23 |
|
| MD5 | 8257fc82cdbaaefd4cd7e43cefcf435b |
|
| BLAKE2b-256 | af4eee964eac60c56f7255d1c14915865868016abb1c7f5b11cb079acc701cd8 |
Hashes for lsdelta-0.9.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 0e21f8099b84d2af5e25e46164d2edfcc7bed6e50d8ba21e5571a6e89e2198b8 |
|
| MD5 | 688c2f281ba83975207e0af7a0f74588 |
|
| BLAKE2b-256 | c45d07b75b591aa6a7b2d4c8d751e8efd439b21fd24db06e923a3ba0c43c2197 |
Hashes for lsdelta-0.9.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 9820ff702d58d2764f9b2c9e174be5d343a4775f7594769fb105b74e3aa58a3e |
|
| MD5 | c21ebf658cbc3072154d7006d5daade0 |
|
| BLAKE2b-256 | ae81fc03241933b647018ebe2d2d67a6ffd4f52a341e73c967a93e3c59bd868d |
Hashes for lsdelta-0.9.0-cp311-cp311-macosx_11_0_arm64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 0466234cc56c679e40d5720a32c7e3d9b9daa82a82d5b8f7074257ac826ef76c |
|
| MD5 | b8412319f62f6d88ee7e75d3bf7ad69d |
|
| BLAKE2b-256 | a602f14b503b5b5a025552a753b4552475c422a279c7f6271414f6048484a1a7 |
Hashes for lsdelta-0.9.0-cp311-cp311-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | b0524cb524b19aeeda3ec39122c98aa12b632392ae6041e23d5d08e498d0ee97 |
|
| MD5 | a31bdc652f998cbc45eceb0fd1eaa332 |
|
| BLAKE2b-256 | 26ac1bd1c881d1787d3989d983242183596ed15f0cd5f31be9cc30a7bcfa59df |
Hashes for lsdelta-0.9.0-cp310-cp310-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 6ddcdb8e87c9948d1f33c64991ec330b9a9c469f273c33e8a2556deecc5397a5 |
|
| MD5 | ad50fa4a71cd4fed27e9f7580de7336e |
|
| BLAKE2b-256 | a5eeb3e8725e8b524ecd2e2b1fd609fb8dfe4a1d8b6a03f966c4e5a22f07e7c3 |
Hashes for lsdelta-0.9.0-cp310-cp310-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 03878393b62d4acb90e5eb89120c32ad2d1b9aadddb517a98fb468e3257ca446 |
|
| MD5 | fe709e65ced64294e9ffd207be861e5c |
|
| BLAKE2b-256 | d1ac5b17fb48c50aa6e2b16a0ec94a95cfa95f805537d9d8253e173eca0662a7 |
Hashes for lsdelta-0.9.0-cp310-cp310-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 69552d7ce121fc0863df6942390794a032670add15f3524a923ad053b92a1428 |
|
| MD5 | 313eadc57978d028c2135f87f1e6ea0a |
|
| BLAKE2b-256 | 029b198204a31aac88122a3c13cccfb772625ba9851d671e8aeb61a8a2b97250 |
Hashes for lsdelta-0.9.0-cp310-cp310-musllinux_1_2_i686.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 164197abb36c9dae6fa565015ac3927841a92635108b2c16e2d759251f1c08dd |
|
| MD5 | 70839a2474573075fa39eab866054b0a |
|
| BLAKE2b-256 | d2841bcfaa7fe3abf442daedf1b9d85b4d7116344c0ef7b8660f4218b7240333 |
Hashes for lsdelta-0.9.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | e348f380aa4658b148fefafe59edbfd89345bbc291d89bf9a8cdb55ed8e941b1 |
|
| MD5 | 1e73acb72c52c7be6e1d144f0f978fd5 |
|
| BLAKE2b-256 | 5afdc2cedcce07d74e454aa87315fadf3e7a9daaaa7446e77c0fa4fdb06279f8 |
Hashes for lsdelta-0.9.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 453a35ed6a1c6799b732bb72cc119da3655e5857ac32fbfa50a80934c129eaa5 |
|
| MD5 | 18139adf5c7778344029b40618735de6 |
|
| BLAKE2b-256 | a9f93e343b46a95c4151ca976556a290233111825b7069b7d190e692ea378c6d |
Hashes for lsdelta-0.9.0-cp310-cp310-macosx_11_0_arm64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | d4258b1f803ea02235155a4e2f34a75154f9e4eafbd8f67e944972f6a70fec71 |
|
| MD5 | f04f9a7f561c7ae52c7d3afcb9a88f3e |
|
| BLAKE2b-256 | 1b3c50a0d7fd8b4c6fe5fb2fd6cd7916954225d8d29c77a570dc97d5c60ee752 |
Hashes for lsdelta-0.9.0-cp310-cp310-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 80374f3911352b7d0198bcd1ae88a978ccb9f60a128dfcfabe99041e76ade468 |
|
| MD5 | 401d4e0f3a573724f957152e056aa7d6 |
|
| BLAKE2b-256 | aa121fc60d00858acc9ab21e5ddc97ea913386d54cdf3904f46ecd21a7a34b13 |
Hashes for lsdelta-0.9.0-cp39-cp39-win_amd64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | aa2d4f8ac5427f0e6d6604a54ca41bf61e03a9e00b2e0702ec3164f7c6479089 |
|
| MD5 | a92bab88f468dbb8d8beb9130799c0d0 |
|
| BLAKE2b-256 | 05a49efa7215a0b43adc8123a046dd7d4bf849835acd91713ccc4b860197ca3d |
Hashes for lsdelta-0.9.0-cp39-cp39-win32.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | d764186b793b5e091a99dea6a404e9a6ba4cb61cb8a0cc7ed52df7096389791c |
|
| MD5 | 97538b563005cf72aa93a2bac339ea51 |
|
| BLAKE2b-256 | 0dca6e53d6f183675dbb99b820d48cefdffca4c0f1b73f2bad6e4ed8956e5318 |
Hashes for lsdelta-0.9.0-cp39-cp39-musllinux_1_2_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 7ef23a6038823ae7bfce4cdf03933ec24ef11993ff14f13cbc2ea4ae9aa5a7cd |
|
| MD5 | 7eb801d1aa28ed8ced06a9bfdd8520dd |
|
| BLAKE2b-256 | 9190eccb36901564c43b4904860c5682a789edc85d98d2852a93e6f1dbb38464 |
Hashes for lsdelta-0.9.0-cp39-cp39-musllinux_1_2_i686.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | ba8a436558cadae556145485e2e11604cbc960e24e1cfcc12c562d56061b7055 |
|
| MD5 | 821f86f8749239920ac2c4c5f4ac4b1c |
|
| BLAKE2b-256 | 3c8db162ede61f230fcf2a24b2e4126588de4105b4bf7aefa7447e9da2fe9992 |
Hashes for lsdelta-0.9.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 5f466966c3805906e3200647d12bb7ac5d30a36cb1665c1296ba0b62dfd757cb |
|
| MD5 | b992554fb5080d1d7441e953ab8c1cf5 |
|
| BLAKE2b-256 | ce9613d7e91bbcb7a60b52ee656cd4d77831cf5a5e74ecc7d22fae9112ef856d |
Hashes for lsdelta-0.9.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | fc73b07e519bfc5ba8c9a8a677024d05485847a6f50177277a68c4c65c7fb9a2 |
|
| MD5 | c427775fb0fb1292486c6d43dc37c5b1 |
|
| BLAKE2b-256 | 818e313ea84fd8a80f562d234b63bc65aa85736c81a2982eb5241aac482bbd79 |
Hashes for lsdelta-0.9.0-cp39-cp39-macosx_11_0_arm64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | f67c28ba548967a0be68b4d891ce211fe2f83cf9eabd848833f5e7c9415240a7 |
|
| MD5 | 586a42849cc07be6daf4a4e327e97043 |
|
| BLAKE2b-256 | e0c58aeb370cbccb1977eb5ee9acb9829a03f4ab8211b53a4f4c0ec9c9b9d50d |
Hashes for lsdelta-0.9.0-cp39-cp39-macosx_10_9_x86_64.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 8ca56fd29f9fdd999c8a91158d909b8ce0262c42c207057faa55664da95c141c |
|
| MD5 | dadb74a8d2768ec4d8cc623a95eea061 |
|
| BLAKE2b-256 | 60928c2a8895e81518c5e935166616a70101c34eb37511f1f38ee893a43303d1 |