Re: count zeros in a number -> Clip[x] = ?
- To: mathgroup at smc.vnet.net
- Subject: [mg121909] Re: count zeros in a number -> Clip[x] = ?
- From: "Dr. Wolfgang Hintze" <weh at snafu.de>
- Date: Thu, 6 Oct 2011 04:23:42 -0400 (EDT)
- Delivered-to: email@example.com
- References: <firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org>
What about setting up a regular column "esoteric of the week" naming
functions that are rarely used ?
I would start with
which I (shame on me) didn't know until this evening. Did you?
"Richard Fateman" <fateman at cs.berkeley.edu> schrieb im Newsbeitrag
news:j6h3kn$74t$1 at smc.vnet.net...
> On 10/3/2011 10:34 PM, Stefan Salanski wrote:
>> All these solutions are very interesting, and they all work, but I
>> believe the simplest solution is actually a built in function,
>> specifically: IntegerExponent.
>> IntegerExponent[n,b] returns the highest power of b which divides n,
>> which for b=10, is the number of trailing zeroes of n.
> why yes, all you need is one esoteric function.
> Proof that it is esoteric? All the previous posters (me too) were
> unaware of it. And presumably all the people who read the question
> did not post anything ...
> The first example in the documentation illustrates exactly this
Prev by Date:
Re: count zeros in a number
Next by Date:
Re: Thread::tdlen: Objects of unequal length
Previous by thread:
Exporting Polygons to DXF
Next by thread:
Mathematica Hangs on Spurious Dynamic Evaluation