Affects Version/s: 184.108.40.206, 220.127.116.11, 9.0.0, 18.104.22.168
Fix Version/s: 9.5.0
Component/s: ZK Client Engine
Security Level: Jimmy
We are running ZK CE 22.214.171.124 in a SpringBoot app. Also tested it on zkfiddle.org.
We are using MVC with SelectorComposer
Using the percent format in a decimalbox parsement and validation of negative percent value fails. We were able to track it back to zk.BigDecimal#$toString()
When using the above zul and entering -3% in the decimalbox on validation it says - from a client error that we should enter a number instead of .-3
In the process a zk.BigDecimal is created with the value -3 and the set its precision to 2. The $toString() call on such a BigDecimal gives an invalid string representation.
var num = new zk.BigDecimal(-3);