13th Mar 2022, 6:02 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
12th Mar 2022, 10:42 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
Your Mom , modulo operation can be applied only for integers.
12th Mar 2022, 10:21 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
You can't use the modulo with a floating point number.
12th Mar 2022, 10:22 PM
rodwynnejones
rodwynnejones - avatar
+ 1
Your Mom , yes cast it to integer =>(int) a %(int) b;
12th Mar 2022, 10:28 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
12th Mar 2022, 10:34 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
use "fmod()" from the math.h / cmath header file .
12th Mar 2022, 10:40 PM
rodwynnejones
rodwynnejones - avatar