问题 I need to implement an RMS calculations of sine wave in MCU (microcontroller, resource constrained). MCU lacks FPU (floating point unit), so I would prefer to stay in integer realm. Captures are discrete via 10 bit ADC. Looking for a solution, I've found this great solution here by Edgar Bonet: https://stackoverflow.com/a/28812301/8264292 Seems like it completely suits my needs. But I have some questions. Input are mains 230 VAC, 50 Hz. It's transformed & offset by hardware means to become 0