mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-19 15:23: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)
|
||||
skip_space()
|
||||
|
||||
if value ~= value or value == math.huge or value == -math.huge then
|
||||
error({"", {"exp-gui_calculator.error"}, value}, 0)
|
||||
if value ~= value then
|
||||
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
|
||||
|
||||
if cursor <= #expression then
|
||||
|
||||
Reference in new issue
Block a user