comp.lang.ada
 help / color / mirror / Atom feed
From: "Chad R. Meiners" <crmeiners@hotmail.com>
Subject: Re: error output numbers
Date: Mon, 19 Mar 2001 16:10:11 -0600
Date: 2001-03-19T16:10:11-06:00	[thread overview]
Message-ID: <3ab68228.0@silver.truman.edu> (raw)
In-Reply-To: 01c0b0b5$af29df60$2a9ec594@default

Perhaps you should compile with the -gnato option ;)
(assuming of course you are using GNAT)

-Chad R. Meiners

"w" <wwminirl@hotmail.com> wrote in message
news:01c0b0b5$af29df60$2a9ec594@default...
> when i use ada to write a program to calculate factorial, i found that
> result after 12! is always wrong.
>
> for example,
>
> 12! = 479001600
> but 13! gives me 1932053504.
> The correct result should be 6227020800.
>
> May be there are some problems with my integer declaration?
> I decleared all outputs to be INTEGER.
>
> Thanks!       :-)





  parent reply	other threads:[~2001-03-19 22:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-19 20:46 error output numbers w
2001-03-19 21:28 ` Marin David Condic
2001-03-20  2:22   ` tmoran
2001-03-19 21:36 ` David C. Hoos, Sr.
2001-03-19 22:10 ` Chad R. Meiners [this message]
2001-04-06 14:03 ` Nils
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox