|
@@ -509,7 +509,11 @@ function Subtraction() {
|
|
|
|
|
|
|
|
|
if(commaPositions.length === 1 && commaPositions[0] !== numbersLen){
|
|
|
- setCommaIdx(commaPositions[0] + 1);
|
|
|
+ if(commaPositions[0] < 0){
|
|
|
+ setCommaIdx(commaPositions[0]);
|
|
|
+ }else{
|
|
|
+ setCommaIdx(commaPositions[0] + 1);
|
|
|
+ }
|
|
|
commaCorrect = true;
|
|
|
}
|
|
|
|