Hello.

I need to calculate time running hour of equipment. I have Tag which take values "WORK" or "Do not WORK". And for this I decided to use Totalizers with calcmode TimeTrue and function EventTrue. But I have little problem - totalizer calculate time in seconds and I need it in hours, so that I use conversion(mult. on 1/3600 = 0,00027778). And after the last day if equipment work all day I get 24,000192 instead 24.

How I can get only 24 hour without fraction 0,000192?

And without using PE tags.

My guess is that this is caused by rounding errors in the floating point calculations. After all, .000192 is less than one second. Maybe add a rounding function?

Have you build this in AF Analytics as you don't use PE?