mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-22 07:33:12 +09:00
.
This commit is contained in:
1 parent
7489df7dcc
commit
9c0b8d25ae
1 file changed
+4
-2
@@ -316,8 +316,10 @@ function Elements.parse(expression)
|
|||||||
local value = parse_expr(1)
|
local value = parse_expr(1)
|
||||||
skip_space()
|
skip_space()
|
||||||
|
|
||||||
if value ~= value or value == math.huge or value == -math.huge then
|
if value ~= value then
|
||||||
error({"", {"exp-gui_calculator.error"}, value}, 0)
|
error({"", {"exp-gui_calculator.error"}, {"exp-gui_calculator.result_nan"}}, 0)
|
||||||
|
elseif value == math.huge or value == -math.huge then
|
||||||
|
error({"", {"exp-gui_calculator.error"}, {"exp-gui_calculator.result_inf"}}, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
if cursor <= #expression then
|
if cursor <= #expression then
|
||||||
|
|||||||
Reference in new issue
Block a user