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: [mg26526] Re: [mg26515] How can I transform the number of 123.456 into "123.456"?
  • From: BobHanlon at aol.com
  • Date: Wed, 3 Jan 2001 04:08:44 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

x = 123.456; y= 345.89087;

ToString /@ {x, y}

{"123.456", "345.891"}

"x = " <> ToString[x] <> " and y = "  <> ToString[y]

"x = 123.456 and y = 345.891"

StringForm["x = `` and y = ``",  x,  y]


Bob Hanlon

In a message dated 2001/1/1 2:47:00 AM, gzgear at yahoo.com writes:

>I want to transform the numbers such as 123.456 or
>345.89087 into strings as "123.456" or "345.89087" ,
>



  • Prev by Date: Re: Can I make this shape?
  • Next by Date: Re: How to add a vector to a list of vectors?
  • 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"?