Modexp$(-81.875,1,35);$ will not work.
So what I have to do is the following:
Modexp$(-81,1,35); = 24$
$875/1000; = 7/8$
Modexp$(24*7,1,35); = 28$
Modexp$(8,-1,35); = 22$
Modexp$(22*28,1,35); = 21 \equiv −81.875 \mod 35$
But there has to be a more efficient way of calculuting $-\frac{655}{8}$ mod $35$. Does anyone know how that might be?
EDIT: Read comments below for correction.
Magma can be quite picky about where your objects live. Though in this case, I can hardly blame it---why would you enter this number as the decimal $-81.875$, which will be treated as an element of a precision field, rather than the exact $-655/8$? Here's what I typed into Magma:
The ! is used to coerce $-655/8$ into the ring $R$.