Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: Computer precision?

Subject: Computer precision?

From: onofftopic@gmail.com

Date: 03 May, 2008 15:03:35

Message: 1 of 4

Hi,

according to the Matlab Help double computer precision (64-bit) is
default in Matlab for 32-bit computers. Maybe is this question
offtopic, but i would like to know why is there no higher precision,
e.g. 128-bit precision, for 32-bit computers?

What is the limitation for the computer precision?



Thank you in advance.

Subject: Re: Computer precision?

From: carlos lopez

Date: 04 May, 2008 20:21:03

Message: 2 of 4

onofftopic@gmail.com wrote in message
<d039b0df-5f51-43a0-9b4b-e3127d398868@27g2000hsf.googlegroups.com>...
> Hi,
>
> according to the Matlab Help double computer precision
(64-bit) is
> default in Matlab for 32-bit computers. Maybe is this question
> offtopic, but i would like to know why is there no higher
precision,
> e.g. 128-bit precision, for 32-bit computers?
>
> What is the limitation for the computer precision?
Hello onofftopic@gmail.com:
On principle there is no fundamental limitation... aside
from the degradation in performance.
In order to use arbitrary precision you might want to test
the Multiple PRecision toolbox by Ben Barrowes, available on
the FEX. It allows to simulate any precision.
"Double precision" is defined in the IEEE 754 standard; 32
bit matlab implements it on all the architectures, so you
can achieve identical results irrespective of the platform.
If you need just a bit more precision than double AND you
are using INTEL processors, you might want to look at the
Extended Precision class by Marcel Leutenegger, available
somewhere.
Regards
Carlos

Subject: Re: Computer precision?

From: Peter Boettcher

Date: 05 May, 2008 13:06:09

Message: 3 of 4

onofftopic@gmail.com writes:

> Hi,
>
> according to the Matlab Help double computer precision (64-bit) is
> default in Matlab for 32-bit computers. Maybe is this question
> offtopic, but i would like to know why is there no higher precision,
> e.g. 128-bit precision, for 32-bit computers?
>
> What is the limitation for the computer precision?

Modern computer hardware implements 64-bit floating point very
efficiently. Anything larger than that requires software
implementation. It is possible to implement 128-bit floating point
using pairs of 64-bit FP values, with software glue, but any approach
like this will be much slower than the hardware-supported 64-bit
computations.

-Peter

Subject: Re: Computer precision?

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 05 May, 2008 16:59:00

Message: 4 of 4

In article <muyskwwj3y6.fsf@G99-Boettcher.llan.ll.mit.edu>,
Peter Boettcher <boettcher@ll.mit.edu> wrote:
>onofftopic@gmail.com writes:

>> according to the Matlab Help double computer precision (64-bit) is
>> default in Matlab for 32-bit computers. Maybe is this question
>> offtopic, but i would like to know why is there no higher precision,
>> e.g. 128-bit precision, for 32-bit computers?

>Modern computer hardware implements 64-bit floating point very
>efficiently. Anything larger than that requires software
>implementation.

most x86 systems have 80 bit floating point internally (though the
values are usually rounded to 64 bits when stored to memory.)

I do not know if it is possible to turn on 80 bit mode in Matlab.
I have never been able to keep track of the system dependant
functions such as system_dependant(). I didn't see anything likely
when googling, but I didn't spend particularily long at it.l

--
  "Is there any thing whereof it may be said, See, this is new? It hath
  been already of old time, which was before us." -- Ecclesiastes

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
arbitrary precision carlos lopez 04 May, 2008 16:25:08
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics