From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: How do I convert a symbolic number to a double without loosing accuracy
Date: Sun, 19 Apr 2009 14:33:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <gsfcmt$ept$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1240151581 15165 (19 Apr 2009 14:33:01 GMT)
NNTP-Posting-Date: Sun, 19 Apr 2009 14:33:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1808000
Xref: comp.soft-sys.matlab:533853


I've been using the symbolic toolbox in my computations. However, now I need to convert my result to a double. 
Here's what my code looks like:

s = vpa(1.12302745678,12)
S = double(s)

this is the result I get
S =

but I don't want the number rounded up 5 sig figures. I need the double to be exactly the same as the symbolic number. 
Can anyone help with this?

Kind Regards