help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Matlab test needed


From: Paul Söderlind
Subject: Re: Matlab test needed
Date: Fri, 27 Jun 2014 10:54:12 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0



On 27/06/2014 10:46, Kai Torben Ohlhus wrote:
On Fri, Jun 27, 2014 at 10:41 AM, Olaf Till <address@hidden> wrote:
On Thu, Jun 26, 2014 at 03:45:33AM -0700, Paul Soderlind wrote:
> <snip>
> (...matlab gives 0

Could you, or someone, please check if Matlab gives exactly zero, i.e

  format long

  rem (.94, .01)

Thanks, Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave


Hi Olaf,

for MATLAB 2014a it does:

>> format long
>> a = rem (.94, .01)
a =
     0
>> num2hex (a)
ans =
0000000000000000

Best,
Kai


Confirmed in 2012b and 2014a (Win64).    /Paul S
-- 



----------------------------------------------------------
Paul Söderlind
Swiss Institute for Banking and Finance
University of St. Gallen
Rosenbergstrasse 52
CH-9000 St. Gallen
Switzerland

address@hidden
https://sites.google.com/site/paulsoderlindecon/home
http://ssrn.com/author=25146
----------------------------------------------------------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]