MathGroup Archive 2001

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

Search the Archive

Re: How can I transform the number of 123.456 into "123.456"?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg26523] Re: How can I transform the number of 123.456 into "123.456"?
  • From: "Kevin J. McCann" <KevinMcCann at home.com>
  • Date: Wed, 3 Jan 2001 04:08:43 -0500 (EST)
  • Organization: Excite@Home - The Leader in Broadband http://home.com/faster
  • References: <92pbsd$9f0@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

The wise words of liwen liwen on 1 Jan 2001 02:33:33 -0500:

> Dear friend:
>             Happy New Year!
> I want to transform the numbers such as 123.456 or
> 345.89087 into strings as "123.456" or "345.89087" ,


Use ToString[123.456]. Example: (Convert this to TraditionalForm so they 
look nice)

p[n_] := Plot[Sin[n*x], 
   {x, 0, 2*Pi}, PlotLabel -> 
    SequenceForm["sin(",ToString[n],"x)"]]

p[3]


Kevin


  • Prev by Date: Re: Launch Directory
  • Next by Date: Re: How can I transform the number of 123.456 into "123.456"?
  • Previous by thread: Re: How can I transform the number of 123.456 into "123.456"?
  • Next by thread: RE: How can I transform the number of 123.456 into "123.456"?