Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Hej,有谁知道如果值为 NaN,我如何检查 ESPER?我想得到一些有效的变量的斜率,但第一个值总是 NaN。我想排除该值。 value ='NaN'并且 value = NaN不工作
value ='NaN'
value = NaN
试试Double.isNaN(...)。在 JVM 上,“Double.NaN!=Double.NaN”使“isNaN”成为正确的选择。
Double.isNaN(...)