spxbhuhb / adaptive

Consolidated full-stack application development library for Kotlin
https://adaptive.fun
Apache License 2.0
3 stars 0 forks source link

[wireformat] handling of special floating-point values #68

Open toth-istvan-zoltan opened 2 months ago

toth-istvan-zoltan commented 2 months ago

Wireformat writes Double (and probably Float) NaN into JSON as "NaN" which is not allowed as per the JSON standard:

  "properties": {
    "actual": NaN,
    "setPoint": NaN,
    "target": NaN
}

This should be changed to "NaN" (handle -Inf and +Inf the same way).