Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Double Precision
Date: Wed, 25 Feb 2009 14:27:37 -0500
Organization: The MathWorks, Inc.
Lines: 32
Message-ID: <go4639$kgc$1@fred.mathworks.com>
References: <go3gjt$lmh$1@fred.mathworks.com> <PCdpl.23889$_U5.15720@newsfe20.iad> <go3pf1$7ik$1@fred.mathworks.com> <go3qne$2sv$1@gemini.csx.cam.ac.uk> <iAepl.29276$pX4.17109@newsfe08.iad>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1235590057 21004 144.212.105.187 (25 Feb 2009 19:27:37 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 25 Feb 2009 19:27:37 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:520810


"Walter Roberson" <roberson@hushmail.com> wrote in message 
news:iAepl.29276$pX4.17109@newsfe08.iad...
> Tim Love wrote:
>> "Hosein" <Kalaeimh@yahoo.com> writes:
>>
>>> I am working with very small numbers and it is important to include all 
>>> digits in all operations.
>> By default, matlab uses double precision. Maybe you just need to look up 
>> the
>> format command?
>
> Correct for sufficiently new versions of Matlab; if I recall correctly, 
> Roger's version
> still defaults to single precision. Maybe there's a "Double Precision" 
> command that is
> so obsolete that I've simply never heard of it ?

As far as I am aware, MATLAB has always used double precision as default [or 
if there was a time when it didn't, it was a Long Time Ago.]  I don't think 
sufficiently old versions of MATLAB have single precision as a data type. 
If I remember correctly, single precision was included in MATLAB starting 
with version 5.0.

I think we'll need to see some code from the OP (Original Poster) before we 
can determine what they mean by "Double Precision".

-- 
Steve Lord
slord@mathworks.com