Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Percentage Formating

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111052] Re: Percentage Formating
  • From: "Christoph Lhotka" <lhotka at axp.mat.uniroma2.it>
  • Date: Sun, 18 Jul 2010 01:05:31 -0400 (EDT)

PercentageForm[x_ /; 0 <= x <= 1] :=
 StringReplace[ToString[IntegerPart[10000 x]/100.] <> "%",
  ".%" -> ".00%"]

best regards...

On 17/07/2010 14:16, SMiranda wrote:
> There's an easy way of formating percentage numbers form reporting
> purposes...
> I mean... 0.05263 --> 5.26%
>
> Thanks !
>
>



  • Prev by Date: Re: Percentage Formating
  • Next by Date: Misprint
  • Previous by thread: Re: Percentage Formating
  • Next by thread: Re: Percentage Formating