MathGroup Archive 2007

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

Search the Archive

Re: Real to String

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84043] Re: Real to String
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Fri, 7 Dec 2007 03:11:43 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fj89ef$a5f$1@smc.vnet.net>

Kurda Yon wrote:

> What is the way to convert real to a string in Mathematica? For
> example, I have a variable, which takes a real value (for example
> x=1.2345). And I would like to have a variable whose value is
> "1.2345".

<snip>

In[1]:= x = 1.2345
y = ToString@x

Out[1]= 1.2345

Out[2]= "1.2345"

Regards,
-- 
Jean-Marc


  • Prev by Date: Re: Images chopped during Export
  • Next by Date: Re: Finding position of an element in a list:
  • Previous by thread: Re: Real to String
  • Next by thread: Eigensystem consistency