Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod and div now convert their operands #55

Open
greenfork opened this issue Apr 9, 2024 · 1 comment
Open

mod and div now convert their operands #55

greenfork opened this issue Apr 9, 2024 · 1 comment

Comments

@greenfork
Copy link
Contributor

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

@habere-et-dispertire
Copy link
Contributor

We can make all the examples run and edit in-place with codeapi's playground. I see this as a fundamental step towards an explorable explanation.

codeapi

A raku sandbox has been recently added following 2024.09.

@ash : how do you feel about this functionality ? I'm happy to do some work and make PRs. If codeapi doesn't load then by graceful degradation the static example remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants