mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare] Number: fix ParseDigits to correctly parse "1."
This commit is contained in:
committed by
LeaNumworks
parent
837bbaeec8
commit
32276680a8
@@ -56,7 +56,7 @@ Number Number::ParseDigits(const char * digits, size_t length) {
|
||||
}
|
||||
// Integer
|
||||
if (exponentLength == 0 && fractionalLength == 0) {
|
||||
Integer i(digits, length, false);
|
||||
Integer i(integral, integralLength, false);
|
||||
if (!i.isInfinity()) {
|
||||
return Rational(i);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user