Fix incorrect parsing of named numbers Duodecillion and greater

Named numbers `Duodecillion` and greater had an extra zero in them
This commit is contained in:
Kasper 2021-02-08 02:29:07 +01:00
parent e4684e72e3
commit b9a1e13146
3 changed files with 17 additions and 11 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"editor.formatOnSave": false
}

View File

@ -1,3 +1,6 @@
## Next
- Fix incorrect parsing of named numbers `Duodecillion` and greater
## 1.3.1 - 2021 Jan 14
- Fix spelling of `Celsius` (@joseluis)

View File

@ -18,17 +18,17 @@ pub fn lookup_named_number(named_number: &NamedNumber) -> d128 {
Nonillion => d128!(1000000000000000000000000000000),
Decillion => d128!(1000000000000000000000000000000000),
Undecillion => d128!(1000000000000000000000000000000000000),
Duodecillion => d128!(10E+39),
Tredecillion => d128!(10E+42),
Quattuordecillion => d128!(10E+45),
Quindecillion => d128!(10E+48),
Sexdecillion => d128!(10E+51),
Septendecillion => d128!(10E+54),
Octodecillion => d128!(10E+57),
Novemdecillion => d128!(10E+60),
Vigintillion => d128!(10E+63),
Centillion => d128!(10E+303),
Googol => d128!(10E+100),
Duodecillion => d128!(1E+39),
Tredecillion => d128!(1E+42),
Quattuordecillion => d128!(1E+45),
Quindecillion => d128!(1E+48),
Sexdecillion => d128!(1E+51),
Septendecillion => d128!(1E+54),
Octodecillion => d128!(1E+57),
Novemdecillion => d128!(1E+60),
Vigintillion => d128!(1E+63),
Googol => d128!(1E+100),
Centillion => d128!(1E+303),
}
}