Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1203618
| From | Yogeswaran Umasankar <yogu@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 | 2024-07-08 02:00 +0200 |
| Message-ID | <IXJNL-yWw-1@gated-at.bofh.it> (permalink) |
| References | <IXCjf-unZ-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
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’m leaning towards fractions because it ensures exact fraction representation without the issues of rounding in numbers. What do you all think? Cheers!
Back to linux.debian.bugs.dist | 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