modulo of a non-integer
Does Sage support modulo of a non-integer? for example:
var("m b")
m=2*pi,
b=3.5*pi,
b.mod(m),
This returns 3.5*pi
instead of the expected 1.5*pi
or
M=2.2,
B=7.7,
B.mod(M)
for which I expect 1.1.
I can calculate it explicitly with b-m*int(b/m)
, but I cannot find the mod version in sage. Which seems surprising.