Search found 1 match
- Saturday 02 April 2016 18:33
- Forum: LUA
- Topic: Trim variable
- Replies: 1
- Views: 502
Trim variable
Hi! I'm using this LUA-script for updating a textfile with temperature from one of my temperaturedevices. Ii is working but the temperaturevalue has to many decimales, like 2.2999999523163 Is it possible to trim or round the value to maybe 1 decimales, like 2.3 My script: commandArray = {} if ...