0

Why mod = 0.25?

https://code.sololearn.com/c9VFw5re3xXh/?ref=app

11th Jul 2022, 6:21 AM
Владимир Панкратьев
Владимир Панкратьев - avatar
1 Answer
+ 4
Because 1.25 / 0.5 yields 2 (quotient) with 0.25 as the remainder. 1.25 / 0.5 = 2 (quotient) 1.25 - (0.5 * <quotient>) = 0.25 (remainder)
11th Jul 2022, 6:54 AM
Ipang