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

Home » Public Forums » archive » A bug in MOD ?
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
A bug in MOD ? [message #41197] Fri, 24 September 2004 03:30
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
Hi,

Is there a bug in the floating point implentation of MOD ? or maybe a
special case when a !pi is used.

IDL> print, 1.0 mod 0.1
0.1000000
;should be 0.0

IDL> print, (1.0*!pi) mod (0.1 * !pi)
0.00000

At least 'a-floor(a/b)*b ' seems to work.

Chris.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: - unsigned variables
Next Topic: xtickformat value

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

Current Time: Fri Oct 10 19:14:39 PDT 2025

Total time taken to generate the page: 1.27904 seconds