Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: bug in rem
Date: Mon, 30 Jul 2007 20:44:26 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 16
Message-ID: <f8lija$j7o$1@fred.mathworks.com>
References: <46ae48de$1@news.eftel.com.au>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1185828266 19704 172.30.248.36 (30 Jul 2007 20:44:26 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 30 Jul 2007 20:44:26 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:421756


ross:
<SNIP FP headache evergreen...

> x = 1.5511623754564467e105;
> r = rem(x,10)
> r = 2.54629497041811e+089

...should not come as a surprise, because your <x> is represented with the uncertainty of

     eps(x)

that happens to be ---

     2.546294970418108e+089

us