01-29-2019 10:30 AM
Hello,
I'm trying to round a variable that contains a single value to 1 decimal place in my script. I found this function but it appears to be only for channels of values:
How can I round a single value?
01-29-2019 01:39 PM - edited 01-29-2019 01:40 PM
Option Explicit 'Forces the explicit declaration of all the variables in a script. Dim number number = 3.14159265359 Call LogFileWrite("Before: " & number) number = Round(number, 1) Call LogFileWrite("After: " & number)