-
Notifications
You must be signed in to change notification settings - Fork 12
mod and div now convert their operands #55
Copy link
Copy link
Open
Description
This is a recent change Raku/problem-solving#326
So this paragraph seems outdated
raku-course/essentials/numbers/operations/index.md
Lines 54 to 62 in e107bc6
| Both `div` and `mod` expect integer operands. So, the following program will not work if you uncomment the lines marked as `Error`: | |
| ```raku | |
| say 10.3 % 3; # OK | |
| # say 10.3 mod 3; # Error | |
| say 10.3 / 3.3; # OK | |
| # say 10.3 div 3.3; # Error | |
| ``` |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels