fix square root of 0

This commit is contained in:
2020-06-10 11:26:17 -04:00
parent 141b108fd5
commit 88714e3a1d
2 changed files with 4 additions and 4 deletions

View File

@@ -678,7 +678,7 @@ document.addEventListener('DOMContentLoaded', function () {
var syntax = $scope.check_syntax(value);
var sqr;
if (syntax.type == "blank") {
if ($scope.ac == "") {
if (typeof $scope.ac != 'number') {
alert($scope.strings.error_ac);
$scope.stop_code();
}