Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.devel > #112420
| Path | csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Russ Allbery <rra@debian.org> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.devel |
| Subject | Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation |
| Date | Mon, 08 Jul 2024 02:10:01 +0200 |
| Message-ID | <IXK77-zig-3@gated-at.bofh.it> (permalink) |
| References | <IXJNL-yWw-1@gated-at.bofh.it> <IXCjf-unZ-3@gated-at.bofh.it> <IXJNL-yWw-1@gated-at.bofh.it> |
| X-Original-To | Yogeswaran Umasankar <yogu@debian.org> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Mon Jul 8 00:09:09 2024 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -1.699 |
| Reply-To | Russ Allbery <rra@debian.org>, 1075905@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | wnpp@debian.org, Yogeswaran Umasankar <yogu@debian.org> |
| X-Debian-Pr-Message | followup 1075905 |
| X-Debian-Pr-Package | wnpp |
| Organization | The Eyrie |
| User-Agent | Gnus/5.13 (Gnus v5.13) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Debian-User | rra |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1845918 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 23 |
| Sender | robomod@news.nic.it |
| X-Original-Cc | 1075905@bugs.debian.org, Daniele Nicolodi <daniele@grinta.net>, debian-devel@lists.debian.org, Andrey Rakhmatullin <wrar@debian.org>, Alexandre Detiste <alexandre.detiste@gmail.com> |
| X-Original-Date | Sun, 07 Jul 2024 17:05:20 -0700 |
| X-Original-Message-ID | <874j90rbnj.fsf@hope.eyrie.org> |
| X-Original-References | <ZospCeFgS9Y8JyEG@debian> <172036696771.3225.7074723973146299207.reportbug@debian> <ZospCeFgS9Y8JyEG@debian> |
| Xref | csiph.com linux.debian.bugs.dist:1203617 linux.debian.devel:112420 |
Cross-posted to 2 groups.
Show key headers only | View raw
Yogeswaran Umasankar <yogu@debian.org> writes: > As I look further, it appears that standard Python libs such as float or > decimal.Decimal do not provide exact representation of rational numbers > (fractions) without potential loss of precision. Seems ‘fraction’ > package yield exact results because those functions directly work on > fractions (to my limited understanding). > decimal.Decimal is better than float, but it only extends to arbitrary > precision decimal arithmetic, not exact representation of rational > numbers. Given that these libraries could potentially serve as > dependencies for tensor-related packages and beyond, should we consider > bringing 'fraction' or restrict ourselves to float (which is a fallback > in moarchiving if fraction unavailable)? I think the suggestion is to use the Python standard library package "fractions" specifically: https://docs.python.org/3/library/fractions.html -- Russ Allbery (rra@debian.org) <https://www.eyrie.org/~eagle/>
Back to linux.debian.devel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Yogeswaran Umasankar <yogu@debian.org> - 2024-07-07 17:50 +0200
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Daniele Nicolodi <daniele@grinta.net> - 2024-07-07 19:20 +0200
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Andrey Rakhmatullin <wrar@debian.org> - 2024-07-07 19:30 +0200
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Yogeswaran Umasankar <yogu@debian.org> - 2024-07-07 20:00 +0200
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Alexandre Detiste <alexandre.detiste@gmail.com> - 2024-07-07 20:10 +0200
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Andrey Rakhmatullin <wrar@debian.org> - 2024-07-07 22:00 +0200
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Colin Watson <cjwatson@debian.org> - 2024-07-08 16:40 +0200
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Yogeswaran Umasankar <yogu@debian.org> - 2024-07-08 02:20 +0200
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Russ Allbery <rra@debian.org> - 2024-07-08 02:10 +0200
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Yogeswaran Umasankar <yogu@debian.org> - 2024-07-08 02:00 +0200
Bug#1075905: ITP: python-fraction -- Fraction carries out all the fraction operations including addition, subtraction, multiplication, division, reciprocation Daniele Nicolodi <daniele@grinta.net> - 2024-07-08 02:10 +0200
csiph-web