comp.lang.ada
 help / color / mirror / Atom feed
* error output numbers
@ 2001-03-19 20:46 w
  2001-03-19 21:28 ` Marin David Condic
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: w @ 2001-03-19 20:46 UTC (permalink / raw)


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!       :-)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-04-06 14:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2001-04-06 14:03 ` Nils

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