comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Constraint error overflow
Date: Tue, 27 Apr 2021 17:52:23 +0200	[thread overview]
Message-ID: <s69bvn$i9e$1@dont-email.me> (raw)
In-Reply-To: <be95bd99-dc1e-44ec-ac26-a2bacc1e8f86n@googlegroups.com>

On 4/27/21 5:32 PM, Richard Iswara wrote:
> 
> So the compiler is restricted to 32 bit integer value. I had hoped for 64 bit to get 18 digits.

No, the compiler defines type Integer as 32 bits. You can define other types 
with larger ranges. For trying to calculate 100!, even 64 bits is not enough; 
you'd need to use an unbounded integer package.

-- 
Jeff Carter
"There's no messiah here. There's a mess all right, but no messiah."
Monty Python's Life of Brian
84

  parent reply	other threads:[~2021-04-27 15:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-27 14:04 Constraint error overflow Richard Iswara
2021-04-27 15:00 ` Dmitry A. Kazakov
2021-04-27 15:32   ` Richard Iswara
2021-04-27 15:38     ` Mark Lorenzen
2021-04-27 15:44     ` Shark8
2021-04-27 15:52     ` Jeffrey R. Carter [this message]
2021-04-27 15:59     ` Dmitry A. Kazakov
2021-04-28  7:03       ` Richard Iswara
2021-04-27 16:31     ` Simon Wright
replies disabled

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