How to get the average that X makes in 1 hour

Hello, so I’m currently working on a Point-of-Sale device, however, it seems like I cannot figure out to how to properly get the average of a number. What I used so far is print(361/60) or print(361/3600).

The problem is that 60 seconds only returns with what it did in the past 1 minute. 3600 seconds on the other hand, returns 0 for numbers below 3600.

Does anyone know how I can make this work properly?

What is the 361 here representing?

the 361 is representing the total value of which I wan’t to get the average from

Have you tried (361/60)/60 yet?


That doesn’t really seem to be working

grafik
Actually, that was my own dumbness. However, it returns 0.1, which I don’t really need it to return