MathGroup Archive 2003

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

Search the Archive

AW: a bug in RealDigits? Mathematica 5.0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45215] AW: [mg45211] a bug in RealDigits? Mathematica 5.0
  • From: Klamser at t-online.de (normal t-online.de)
  • Date: Sun, 21 Dec 2003 03:42:10 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

try

t1 = SetPrecision[39383738378094852309445543850343.49494, 37]

-----Ursprüngliche Nachricht-----
Von: steve_H [mailto:nma124 at hotmail.com]
Gesendet: Samstag, 20. Dezember 2003 11:57
An: mathgroup at smc.vnet.net
Betreff: [mg45211] a bug in RealDigits? Mathematica 5.0


hello;

Mathematica 5.0, student version, on XP home edition:

t1 = 39383738378094852309445543850343.49494

{c, d} = RealDigits[t1];

now c is

{3, 9, 3, 8, 3, 7, 3, 8, 3, 7, 8, 0, 9, 4, 8, 5, 2, 3, 0, 9,
4, 4, 5, 5, 4, 3, 8, 5, 0, 3, 4, 3, 4, 9, 4, 9}

notice that I typed in the last digits of t1 as '.49494', i.e the
number to the right of the decimal point.

But 'c' above is missing the last digit, it only reports '4,9,4,9'
instead of '4,9,4,9,4'

What happened to the last digit '4' ?


  • Prev by Date: Re: Power Series for LogIntegral
  • Next by Date: Re: Book Recommendations
  • Previous by thread: Re: AW: Transpose matrix does not work when MatrixForm is used, why?
  • Next by thread: color in GridBox