Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] IntervalExpressionUtil Interval judgment error #2205

Closed
1 task done
yuluo-yx opened this issue Jul 4, 2024 · 0 comments
Closed
1 task done

[BUG] IntervalExpressionUtil Interval judgment error #2205

yuluo-yx opened this issue Jul 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yuluo-yx
Copy link
Contributor

yuluo-yx commented Jul 4, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

IntervalExpressionUtil.validNumberIntervalExpress(-1000.0, "(-∞,5)");

Mathematically, it should be correct and return true, but the execution returns false.

Expected Behavior

return true.

Steps To Reproduce

No response

Environment

HertzBeat version(s):

Debug logs

No response

Anything else?

In java, Double MIN_VALUE is the smallest positive integer close to 0, not negative infinity, and should be used as Double.NEGATIVE_INFINITY & Double.POSITIVE_INFINITY.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants