openhab / openhab-core

Core framework of openHAB
https://www.openhab.org/
Eclipse Public License 2.0
932 stars 429 forks source link

Parse BigInteger directly in DecimalType #4417

Closed magx2 closed 1 month ago

magx2 commented 1 month ago

Instead of running expensive BigInteger.toString() and then parsing BigDecimal from it, run direclty constructor BigDecimal(BigInteger)