diff --git a/changelog.md b/changelog.md index c045e6b..bb44ece 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,8 @@ # Changelog ## Version 0.2 (working) +* Fix JSON parsing of numbers using `E` notation +* Fix `ProxyExt` to convert API value to `BStatusBoolean` for bool points ## Version 0.1 (5-Jun-2021) * Initial MVP \ No newline at end of file diff --git a/novant/novant-rt/src/io/novant/point/BNovantProxyExt.java b/novant/novant-rt/src/io/novant/point/BNovantProxyExt.java index a2609f9..3c1490f 100755 --- a/novant/novant-rt/src/io/novant/point/BNovantProxyExt.java +++ b/novant/novant-rt/src/io/novant/point/BNovantProxyExt.java @@ -163,7 +163,9 @@ public void updateVal(Object val) if (val instanceof Double) { double dval = ((Double)val).doubleValue(); - readOk(new BStatusNumeric(dval)); + if (isBoolean()) readOk(new BStatusBoolean(dval > 0)); + else if (isNumeric()) readOk(new BStatusNumeric(dval)); + else readFail("Unsupported point type"); } else {