01.11.2022, 14:05
Code:
sum = 0
for _, entry in ipairs(spot) do
entry.datetime = os.date('%c', entry.time)
sum = sum + entry.price
end
avg = sum / #spot
log(avg)
Stucturing data
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
Stucturing data - by tomnord - 31.10.2022, 14:32
RE: Stucturing data - by admin - 31.10.2022, 14:36
RE: Stucturing data - by tomnord - 31.10.2022, 14:51
RE: Stucturing data - by admin - 31.10.2022, 14:56
RE: Stucturing data - by tomnord - 31.10.2022, 20:52
RE: Stucturing data - by admin - 01.11.2022, 08:48
RE: Stucturing data - by tomnord - 01.11.2022, 10:34
RE: Stucturing data - by tomnord - 01.11.2022, 13:23
RE: Stucturing data - by admin - 01.11.2022, 13:44
RE: Stucturing data - by tomnord - 01.11.2022, 14:02
RE: Stucturing data - by admin - 01.11.2022, 14:05
|