MathGroup Archive 2009

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

Search the Archive

Re: Avoid printing leading zero


On Jun 11, 8:46 pm, Jos=E9 Lorenzana <lorenzana.j... at gmail.com> wrote:
> How do you avoid printing the leading zero in -0.03?
> I need to construct the string "-.03" .
>
> Something like this does not work:
> ToString at NumberForm[-0.3, {0, 2}]
>
> Thanks a lot!
>
> Jos=E9

StringDrop[ToString[-0.03], {2}]


  • Prev by Date: mergeSort with ReplaceRepeated
  • Next by Date: Re: Avoid printing leading zero
  • Previous by thread: Avoid printing leading zero
  • Next by thread: Re: Avoid printing leading zero