Skip to content

mod and div now convert their operands #55

@greenfork

Description

@greenfork

This is a recent change Raku/problem-solving#326

So this paragraph seems outdated

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
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions