comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Simple MODULO question.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Simple MODULO question. [message #6467] Tue, 02 July 1996 00:00
penzes is currently offline  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 |
------------------------------------------------------------ ------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: accessing structures
Next Topic: Reading in a bunch of bytes

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:00:54 PDT 2025

Total time taken to generate the page: 0.00538 seconds