The result of 512*1024 becomes 0

Thank you for your kind explanation!
I'll keep this in mind.