Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Leading Zeros?

  • To: mathgroup at
  • Subject: [mg54339] Re: [mg54319] Leading Zeros?
  • From: Sseziwa Mukasa <mukasa at>
  • Date: Sat, 19 Feb 2005 02:31:39 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

On Feb 17, 2005, at 10:30 AM, AES wrote:

> A quick test seems to show that if I enter as an input line
>    y = {001,002,003}; Print[y//FullForm];
> the output is List[1,2,3].
> Are the leading zeros gone forever?  Does Mathematica have an official
> policy on capturing or storing leading zeros?

To control the display of leading zeroes use PaddedForm

PaddedForm[y, 2, NumberPadding -> {"0", "0"}]



  • Prev by Date: Re: Why does Inverse[M] hesitate?
  • Next by Date: Re: Finding extra digit
  • Previous by thread: Leading Zeros?
  • Next by thread: Re: Leading Zeros?