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:
parent
e4684e72e3
commit
b9a1e13146
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"editor.formatOnSave": false
|
||||||
|
}
|
||||||
@ -1,3 +1,6 @@
|
|||||||
|
## Next
|
||||||
|
- Fix incorrect parsing of named numbers `Duodecillion` and greater
|
||||||
|
|
||||||
## 1.3.1 - 2021 Jan 14
|
## 1.3.1 - 2021 Jan 14
|
||||||
- Fix spelling of `Celsius` (@joseluis)
|
- Fix spelling of `Celsius` (@joseluis)
|
||||||
|
|
||||||
|
|||||||
@ -18,17 +18,17 @@ pub fn lookup_named_number(named_number: &NamedNumber) -> d128 {
|
|||||||
Nonillion => d128!(1000000000000000000000000000000),
|
Nonillion => d128!(1000000000000000000000000000000),
|
||||||
Decillion => d128!(1000000000000000000000000000000000),
|
Decillion => d128!(1000000000000000000000000000000000),
|
||||||
Undecillion => d128!(1000000000000000000000000000000000000),
|
Undecillion => d128!(1000000000000000000000000000000000000),
|
||||||
Duodecillion => d128!(10E+39),
|
Duodecillion => d128!(1E+39),
|
||||||
Tredecillion => d128!(10E+42),
|
Tredecillion => d128!(1E+42),
|
||||||
Quattuordecillion => d128!(10E+45),
|
Quattuordecillion => d128!(1E+45),
|
||||||
Quindecillion => d128!(10E+48),
|
Quindecillion => d128!(1E+48),
|
||||||
Sexdecillion => d128!(10E+51),
|
Sexdecillion => d128!(1E+51),
|
||||||
Septendecillion => d128!(10E+54),
|
Septendecillion => d128!(1E+54),
|
||||||
Octodecillion => d128!(10E+57),
|
Octodecillion => d128!(1E+57),
|
||||||
Novemdecillion => d128!(10E+60),
|
Novemdecillion => d128!(1E+60),
|
||||||
Vigintillion => d128!(10E+63),
|
Vigintillion => d128!(1E+63),
|
||||||
Centillion => d128!(10E+303),
|
Googol => d128!(1E+100),
|
||||||
Googol => d128!(10E+100),
|
Centillion => d128!(1E+303),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user