I was going through a coding competition. it asked there is decimal number and we have to find its modulo by 10^9 + 7(1000000007). the simple test cases were
- 1.23 should give output 110000002
- 4.0 should give output 4.
i was unable to understand how 1.23 can give that value. is decimal mod is treated in some different manner? not simply a remainder of a number.