Tue, Apr 26, 2022TIL; fmod I wanted to implement a day/night cycle and I needed to convert time to sun angle. So fmod function can do it like this: auto angle = std::fmod(time / dayLenght, 1.f) * 360.f Next - Previous