Path: news.mathworks.com!not-for-mail
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$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1240151581 15165 172.30.248.35 (19 Apr 2009 14:33:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 19 Apr 2009 14:33:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1808000
Xref: news.mathworks.com comp.soft-sys.matlab:533853

Hi, 

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 =

    1.1230
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