Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = 26.5
- base = 7
- a = round(n)
- print(a)
- for (i in round(a-base/2):round(a+base/2)) {
- if (i %% (base) == 0) a = i
- }
- print(a)
- [1] 28
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement