Simple MODULO question. [message #6467] |
Tue, 02 July 1996 00:00 |
penzes
Messages: 2 Registered: September 1993
|
Junior Member |
|
|
It truly is a simple question and the online help doesn't seem to
answer it. So it's either a bug or I have a short cicuit in a synapse
someplace. Anyway here it is:
Why does print,1.0 mod 0.25 return 0.00000 (as expected)
generally 1.0 mod (1.0/2^n) returns 0
while print,1.0 mod 0.2
or print,1.0 mod (1.0/5.0) return 0.200000
generally 1.0 mod (1.0 / n)
In case you're wondering, I am trying to determine if:
for x mod y whether x is an integer multiple of y.
------------------------------------------------------------ ------------
| Steven Penzes | penzes@dres.dnd.ca |
| Defence Research Establishment Suffield (DRES) | Tel: (403) 544-4761 |
| PO Box 4000, Medicine Hat, AB., Canada T1A-8K6 | FAX: (403) 544-4704 |
------------------------------------------------------------ ------------
|
|
|