Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local k, b = collectgarbage("count")
- print(k, b)
- local kb_to_b = math.floor(k) * 1024
- local dec_to_b = (k-math.floor(k)) * 1024
- local sum = kb_to_b + dec_to_b
- print("bytes:", sum)
- print("kilobytes:", (sum)*(1/1024))
- local justb = k * 1024
- print("bytes:", justb)
- print("kilobytes:", (justb)*(1/1024))
- print("Foe:", (collectgarbage("count") * 1024)/1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement