[comp.lang.modula2] REM operator

harv@ksuvax1.BITNET (Harvard Townsend) (05/05/88)

Can someone please explain the REM operator in Modula-2?  Wirth has
it defined for REAL and LONGREAL types in his one-pass compiler source,
but I have not seen it mentioned in any Modula-2 books.  Since
it is defined for floats, "remainder" doesn't make sense.  The source
just calls a routine "FRem2" ("floating point REM operation with 2 operands")
which is not provided (I had to call floating point emulation library routines
to implement the other float operations).  Anyone seen this before?
______________________________________
Harvard Townsend, Systems Manager
Dept. of Computing & Information Sciences
Kansas State University, Manhattan, KS 66506   (913)532-6350
CSNET:  harv@cis.ksu.edu -or- harv@kansas-state.csnet
BITNET: harv@ksuvax1.bitnet -or- harv%ksuvax1.bitnet@cunyvm.cuny.edu
UUCP:    ihnp4,sdcsvax,cbatt,dcdwest !ncr-sd!ncrwic!ksuvax1!harv
        -or- ihnp4!wnuxa!ksuvax1!harv -or- ...!psuvax1!ksuvax1.bitnet!harv
AT&T Mail: attmail!htownsend

vandys@hpindda.HP.COM (Andy Valencia) (05/06/88)

    Isn't it just the floating REMainder?  MOD for the REALs, and all...

				Andy Valencia
				vandys%hpindda.UUCP@hplabs.hp.com