Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2011

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

Search the Archive

Re: count zeros in a number

  • To: mathgroup at
  • Subject: [mg121817] Re: count zeros in a number
  • From: "Harvey P. Dale" <hpd1 at>
  • Date: Mon, 3 Oct 2011 04:24:18 -0400 (EDT)
  • Delivered-to:
  • References: <>

	zeroes[24^24 55^55]



-----Original Message-----
From: dimitris [mailto:dimmechan at]
Sent: Sunday, October 02, 2011 2:37 AM
To: mathgroup at
Subject: [mg121817] count zeros in a number


Consider e.g. the number 24^24*55^55.
This number ends with exactly 55 zeros as the following demonstrate

In[201]:= Mod[24^24*55^55, 10^55]
Mod[24^24*55^55, 10^56]

Out[201]= 0
Out[202]= 20000000000000000000000000000000000000000000000000000000

What I want now is a way to count the zeros that a number ends without
knowing in advance this number of zeros like in the above example.

Thanks in advance.

  • Prev by Date: Re: DynamicModule Pure Function
  • Next by Date: workaround for GraphPlot not accepting node list?
  • Previous by thread: Re: count zeros in a number
  • Next by thread: Re: count zeros in a number