rev-scientific 0.2.0.0 → 0.2.1.0
raw patch · 3 files changed
+12/−6 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−0
- Data/ReversedScientific.hs +4/−4
- rev-scientific.cabal +2/−2
CHANGELOG.md view
@@ -8,3 +8,9 @@ * Second version. Changed the output order, added documentation. +## 0.2.1.0 -- 2023-06-22++* Second version revised A. Changed the letter 'm' to 'd' that now means 'a number of significant digits'.+Fixed some minor issues with documentation.++
Data/ReversedScientific.hs view
@@ -37,16 +37,16 @@ -- -- > let a = 58702730574235423475087390582374507304750234705847047403750375034750723045720387502357280345 -- > let b = 58738475082532745724057082370582054703750278402705730573074052705780857034750537507053278--- > showBignum 7 a == \"e91~5.87...m92~345\"--- > showBignum 7 b == \'e88~5.87...m89~278\"+-- > showBignum 7 a == "e91~5.87...d92~345"+-- > showBignum 7 b == "e88~5.87...d89~278" -- -- As it is seen from the numbers after \"e\" the first one is greater than the second one.--- Nevertheless, if you append the three digits 345 to the end of the second one, the output here +-- Nevertheless, if you append the three digits 345 (hence \"d\" in the notation meanitg a number of significant digits) to the end of the second one, the output here -- will be equivalent, but the modified second number will be greater than the first one. showBignum :: Int -> Integer -> String showBignum n x | l0 < 6 = xShow- | l >= n = mconcat ["e", show (l - 1), "~", (c1:"."), k2s, "...m", show l0, "~", k3s]+ | l >= n = mconcat ["e", show (l - 1), "~", (c1:"."), k2s, "...d", show l0, "~", k3s] | otherwise = xShow where xShow = show x l = length xShow
rev-scientific.cabal view
@@ -1,12 +1,12 @@ cabal-version: 2.4 name: rev-scientific-version: 0.2.0.0+version: 0.2.1.0 -- A short (one-line) description of the package. synopsis: A library to provide special kind of big numbers writing. -- A longer description of the package.-description: Provides a function that shows the somewhat "reversed" scientific notation of the big 'Integer' number so that it is easier (more likely exact) to compare at quick glance two numbers in such a notation by their order and values in the ordered list of the multiple values.+description: Provides a function that shows the somewhat "reversed" scientific notation of the big 'Integer' number so that it is easier (more likely accurately) to compare at quick glance two numbers in such a notation by their order and values in the ordered list of the multiple values. Is intended to be used in PhLADiPreLiO. -- A URL where users can report bugs. -- bug-reports: