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"?


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"?