MathGroup Archive 2010

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

Search the Archive

Re: Percentage Formating


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