[READ-ONLY] Mirror of https://github.com/probablykasper/cpc. Text calculator with support for units and conversion cpc.kasper.space
calculator cli conversion converter library math package units units-converter wasm website
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix incorrect parsing of named numbers `Duodecillion` and greater

Named numbers `Duodecillion` and greater had an extra zero in them

Kasper (Feb 8, 2021, 2:29 AM +0100) b9a1e131 e4684e72

+17 -11
+3
.vscode/settings.json
··· 1 + { 2 + "editor.formatOnSave": false 3 + }
+3
CHANGELOG.md
··· 1 + ## Next 2 + - Fix incorrect parsing of named numbers `Duodecillion` and greater 3 + 1 4 ## 1.3.1 - 2021 Jan 14 2 5 - Fix spelling of `Celsius` (@joseluis) 3 6
+11 -11
src/lookup.rs
··· 18 18 Nonillion => d128!(1000000000000000000000000000000), 19 19 Decillion => d128!(1000000000000000000000000000000000), 20 20 Undecillion => d128!(1000000000000000000000000000000000000), 21 - Duodecillion => d128!(10E+39), 22 - Tredecillion => d128!(10E+42), 23 - Quattuordecillion => d128!(10E+45), 24 - Quindecillion => d128!(10E+48), 25 - Sexdecillion => d128!(10E+51), 26 - Septendecillion => d128!(10E+54), 27 - Octodecillion => d128!(10E+57), 28 - Novemdecillion => d128!(10E+60), 29 - Vigintillion => d128!(10E+63), 30 - Centillion => d128!(10E+303), 31 - Googol => d128!(10E+100), 21 + Duodecillion => d128!(1E+39), 22 + Tredecillion => d128!(1E+42), 23 + Quattuordecillion => d128!(1E+45), 24 + Quindecillion => d128!(1E+48), 25 + Sexdecillion => d128!(1E+51), 26 + Septendecillion => d128!(1E+54), 27 + Octodecillion => d128!(1E+57), 28 + Novemdecillion => d128!(1E+60), 29 + Vigintillion => d128!(1E+63), 30 + Googol => d128!(1E+100), 31 + Centillion => d128!(1E+303), 32 32 } 33 33 } 34 34