Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Avoid printing leading zero

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100741] Avoid printing leading zero
  • From: Josà Lorenzana <lorenzana.jose at gmail.com>
  • Date: Thu, 11 Jun 2009 21:47:10 -0400 (EDT)

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é


  • Prev by Date: keybord problem with version 7 and altgr
  • Next by Date: Re: Creating Matrix from vectors
  • Previous by thread: Re: keybord problem with version 7 and altgr
  • Next by thread: Re: Avoid printing leading zero