Skip to content

Mod %

Makes a division of it's arguments, takes a remainder. Supports such types and their combinations: i64, I64, f64, F64.

> (% 1 2)
1
> (% 1.2 2.2)
1
> (% 2 3.4)
2
> (% [1 2 3] 3)
[1 2 0]
> (% [1 2 3] 2.1)
[1 2 0]
> (% 3.1 [1 2 3])
[0 1 0]