MathGroup Archive 2005

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

Search the Archive

Re: Leading Zeros? (question rephrased)

  • To: mathgroup at
  • Subject: [mg54599] Re: Leading Zeros? (question rephrased)
  • From: Paul Abbott <paul at>
  • Date: Thu, 24 Feb 2005 03:21:03 -0500 (EST)
  • Organization: The University of Western Australia
  • References: <cv6sms$6p2$>
  • Sender: owner-wri-mathgroup at

In article <cv6sms$6p2$1 at>, AES <siegman at> 

> Instead I'm asking, suppose I type
>    y = {001,002,003}; 
> into a newly opened "virgin" instance of Mathematica, without defining 
> any special formats or rules before I do this.  
> Are the leading zeros that I type into this list captured and stored 
> somehow by Mathematica?  
> Or is the default response that they're ignored and lost forever?  (As I 
> believe they are.) 

They are lost but they are not ignored -- they are definitely parsed. 
You can use $PreRead to see this:

  $PreRead = (Print[FullForm[#]]; #) &;


(Note that the output you get depends upon whether the Input cell 
containing {001,002,003} is StandardForm, InputForm, or TraditionalForm).


Paul Abbott                                   Phone: +61 8 6488 2734
School of Physics, M013                         Fax: +61 8 6488 1014
The University of Western Australia      (CRICOS Provider No 00126G)         
35 Stirling Highway
Crawley WA 6009                      mailto:paul at 

  • Prev by Date: Re: Mathematica 5 and Windows XP
  • Next by Date: Re: expression formatting inside tables
  • Previous by thread: Re: Leading Zeros? (question rephrased)
  • Next by thread: Labels on graphs