|
From: | José Abílio Matos |
Subject: | Re: Is double precision for floating point calculation the default? |
Date: | Sat, 21 Mar 2020 10:35:11 +0000 |
On Saturday, 21 March 2020 03.59.34 WET ttonon wrote: > Greetings, > In a program, I need all my calculations, which are floating point decimal, > to be double precision (accurate to 10E-16). Is that the default, or must I > make an explicit command for that precision, and if so, what is the > command? Thanks. > > Tom
Yes it is the default:
As an example:
>> class(5) ans = double >> eps(1) ans = 2.2204e-16
-- José Matos |
[Prev in Thread] | Current Thread | [Next in Thread] |