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

Home » Public Forums » archive » Re: A bug in MOD ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: A bug in MOD ? [message #41196 is a reply to message #41194] Fri, 24 September 2004 03:49 Go to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <20040924.113053.971899228.25372@buckley.atm.ox.ac.uk>,
"Christopher Lee" <cl@127.0.0.1> wrote:

> IDL> print, 1.0 mod 0.1
> 0.1000000
> ;should be 0.0
> IDL> print, (1.0*!pi) mod (0.1 * !pi)
> 0.00000

IDL> print, (0.8) mod 0.1
0.00000
IDL> print, 1.1 mod 0.1
7.45058e-09 ; =0.0
IDL> print, 1.0 mod 0.5
0.00000

On further testing, C++ gives the same answer. So the bug is somewhere in
my glibc.

Chris.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Munich Adventures and other Coyote Stories
Next Topic: Integration of 2-D irregularly gridded data

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

Current Time: Fri Oct 10 10:30:52 PDT 2025

Total time taken to generate the page: 1.12155 seconds