Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: error in dec2hex
Date: Tue, 15 May 2012 17:16:07 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 26
Message-ID: <jou30n$8a9$1@newscl01ah.mathworks.com>
References: <jou1e2$h1$1@newscl01ah.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1337102167 8521 172.30.248.35 (15 May 2012 17:16:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 15 May 2012 17:16:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:767938

"Leyo Joseph" wrote in message <jou1e2$h1$1@newscl01ah.mathworks.com>...
> Hello,
> I am trying this simple dec2hex and gets the error==>
>  k=200*2^47/38400
> 

% Requirement

>> help dec2hex
 dec2hex Convert decimal integer to hexadecimal string.
    dec2hex(D) returns a 2-D string array where each row is the
    hexadecimal representation of each decimal integer in D.
    D must contain non-negative integers smaller than 2^52.

   [...]


>> k==round(k)

ans =

     0

Thus k does not meet the requirement.

Bruno