# \#float

**URL:** https://community.openhab.org/tag/float/933.md

[Latest](https://community.openhab.org/latest.md) · [Categories](https://community.openhab.org/categories.md) · [Tags](https://community.openhab.org/tags.md)

---

## [How to convert hex to float?](https://community.openhab.org/t/how-to-convert-hex-to-float/141009)

<div class="topic-metadata">

**Author:** [@martiniman](https://community.openhab.org/u/martiniman)\
**Replies:** 3\
**Last updated:** [November 14, 2022, 4:58pm UTC](https://community.openhab.org/t/how-to-convert-hex-to-float/141009 "2022-11-14T16:58:19Z")

</div>

Hi! How to convert hex to float? var String output = "67|FA|40|48" var String\[\] bytes = output.split("\\\\|") // 67FA4048 var Number r = Integer.parseInt(bytes.get(2) + bytes.get(3) + bytes.get(0) …

---

## [OH3 - The constructor Float(String) is deprecated](https://community.openhab.org/t/oh3-the-constructor-float-string-is-deprecated/129029)

<div class="topic-metadata">

**Author:** [@jwiseman](https://community.openhab.org/u/jwiseman)\
**Replies:** 2\
**Last updated:** [November 21, 2021, 9:26pm UTC](https://community.openhab.org/t/oh3-the-constructor-float-string-is-deprecated/129029 "2021-11-21T21:26:20Z")

</div>

I have been spending a little over two weeks modifying OH 2.x code to OH 3.x code and I’m stuck with fixing these. Got 3 of these warnings for the rules below - The constructor Float(String) is deprecated var String re…

---

## [\[SOLVED\] Modbus Energy Meter - reading float registers](https://community.openhab.org/t/solved-modbus-energy-meter-reading-float-registers/14051)

<div class="topic-metadata">

**Author:** [@Csongor\_Varga](https://community.openhab.org/u/Csongor_Varga)\
**Replies:** 26\
**Last updated:** [February 6, 2020, 7:32am UTC](https://community.openhab.org/t/solved-modbus-energy-meter-reading-float-registers/14051 "2020-02-06T07:32:34Z")

</div>

I purchased an Eastron SDM120 Modbus energy meter. I thought I understand how modbus works, but probably I am on the wrong path. I got the modbus documentation for this device: https://drive.google.com/file/d/0Bw1XOPtMPl…

---

## [\[SOLVED\] Floating point operations in rules causes severe performance issues on hard float capable hardware/software](https://community.openhab.org/t/solved-floating-point-operations-in-rules-causes-severe-performance-issues-on-hard-float-capable-hardware-software/63541)

<div class="topic-metadata">

**Author:** [@ProjectMarvin](https://community.openhab.org/u/ProjectMarvin)\
**Replies:** 24\
**Last updated:** [January 11, 2019, 2:49pm UTC](https://community.openhab.org/t/solved-floating-point-operations-in-rules-causes-severe-performance-issues-on-hard-float-capable-hardware-software/63541 "2019-01-11T14:49:37Z")

</div>

Platform information: Hardware: Raspberry Pi 3 B OS: Rasbian (openHABian v1.4) Java Runtime Environment: Zulu Embedded 8.25.0.76-linux-aarch32hf openHAB version: 2.4.0-1 Stable Storage: 64GB Sandisk Extreme Go USB3.1 …

---

## [\[SOLVED\] How to write a negative float?](https://community.openhab.org/t/solved-how-to-write-a-negative-float/59648)

<div class="topic-metadata">

**Author:** [@metin](https://community.openhab.org/u/metin)\
**Replies:** 4\
**Last updated:** [December 13, 2018, 5:54pm UTC](https://community.openhab.org/t/solved-how-to-write-a-negative-float/59648 "2018-12-13T17:54:39Z")

</div>

Can someone please help me to understand this problem: I’m trying to assign a negative floating point value, but it seems like I’m not getting the right syntax. This one works: val float offTemp = -1 // Temperat…

---

## [Dynamic Icon Float Number](https://community.openhab.org/t/dynamic-icon-float-number/44046)

<div class="topic-metadata">

**Author:** [@Max\_Bec](https://community.openhab.org/u/Max_Bec)\
**Replies:** 3\
**Last updated:** [April 23, 2018, 7:59pm UTC](https://community.openhab.org/t/dynamic-icon-float-number/44046 "2018-04-23T19:59:48Z")

</div>

Hey guys, I try to setup dynamic icons for a battery volt float number. (Like 2,7 V). Unfortunately its not working with the following icons: battery\_f-0 battery\_f-1 battery\_f-2 battery\_f\_3 battery\_f Anyone an id…

---

## [Write Temperature Setpoint to Modbus as float32](https://community.openhab.org/t/write-temperature-setpoint-to-modbus-as-float32/37954)

<div class="topic-metadata">

**Author:** [@tobinski](https://community.openhab.org/u/tobinski)\
**Replies:** 2\
**Last updated:** [January 9, 2018, 6:11pm UTC](https://community.openhab.org/t/write-temperature-setpoint-to-modbus-as-float32/37954 "2018-01-09T18:11:35Z")

</div>

Hi! openHAB 2.2.0 Release Build I have a problem with the setpoint item an the modbus binding. Modbus binding: tcp.slave2.connection=192.168.178.12:502 tcp.slave2.id=1 tcp.slave2.start=12291 tcp.slave2.length=2 t…
