Path: news.mathworks.com!not-for-mail
From: "Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Displaying large Integers
Date: Tue, 19 Feb 2008 02:28:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <fpderh$gd7$1@fred.mathworks.com>
References: <fpd87m$agl$1@fred.mathworks.com>
Reply-To: "Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1203388082 16807 172.30.248.38 (19 Feb 2008 02:28:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 19 Feb 2008 02:28:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:452259


"Daniel " <daw4888@hotmail.com> wrote in message <fpd87m$agl
$1@fred.mathworks.com>...
> I read all the formating stuff on matlabs site but cant
> figure out how to display large integers without them being
> E to the X.
> 
> I need to display my data as 
> 
> 901276736291
> 
> And not as
> 
> 1.0e+011 * 9.01276736291000
> 
> Thanks for any help in advance.
---------
  Use the %.0f format of fprintf.

 x = 9876^3;
 fprintf('%.0f\n',x)

963259373376