MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Question on Mod[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35976] Re: [mg35970] Question on Mod[]
  • From: BobHanlon at aol.com
  • Date: Sun, 11 Aug 2002 05:13:34 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 8/9/02 4:35:56 PM, s-banerjee at northwestern.edu writes:

>Why does Mod[3.5, 0.1] gives 0.1?
>
>However,
>3.5 - 0.1 Quotient[3.5, 0.1] gives 0


Lack of precision because you used machine numbers.

Mod[3.5, 0.1]

0.1

Mod[35/10, 1/10]

0

Mod[Rationalize[3.5], 0.1]

0.

Mod[3.5, Rationalize[0.1]]

0.


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: automatic changing font characteristics
  • Next by Date: font problem solved
  • Previous by thread: Question on Mod[]
  • Next by thread: Re: Question on Mod[]