killme2008 / killme2008/aviatorscript

NaN计算异常问题

Open
#563 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.2k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

math.sqrt(-1) > 5 计算这个表达式得到结果为true,这和其他语言以及传统理解不符吧,是BUG吗?还是说有特殊配置?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported `math.sqrt(-1) > 5` expression in AviatorScript and compare its result with the expected NaN behavior. Trace how the expression evaluator handles `math.sqrt(-1)` and numeric comparisons. Done means determining whether this is a bug or special configuration and documenting or correcting the behavior accordingly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.