If you change the input to an integer, then it will output an integer.
hmm...
(Defun NewRem ( NUM1 NUM2 )
(/ (Rem (* NUM1 10.0) (* NUM2 10.0)) 10.0 )
)
is this going to solve it?
_$ (rem 0.1 0.01)
3.46945e-018
_$ (/ 1.0 0.01)
100.0
_$ (NewRem 1.0 0.1)
0.0
_$ (NewRem 0.1 0.01)
0.01
This is not looking too good.
Let's try this:
(Defun MyRem ( NUM1 NUM2 )
(- NUM1 (* NUM2 (Fix (/ NUM1 NUM2))) )
)
hmm..
edit: oops