comp.lang.ada
 help / color / mirror / Atom feed
From: Stribor40 <ikamzic@gmail.com>
Subject: Re: casting types
Date: Tue, 30 Sep 2014 19:13:00 -0700 (PDT)
Date: 2014-09-30T19:13:00-07:00	[thread overview]
Message-ID: <3190e4ed-b687-43b6-bc20-a4545e2073e4@googlegroups.com> (raw)
In-Reply-To: <m0fnjv$rir$1@dont-email.me>

On Tuesday, 30 September 2014 22:06:58 UTC-4, Jeffrey Carter  wrote:
> On 09/30/2014 06:49 PM, Stribor40 wrote:
> 
> > 
> 
> > How would I cast var1 to become 123 but still be able to subtract it from var1 and keep float type?
> 
> 
> 
> You can't, since there is no casting in Ada. However, you might find the
> 
> 'Truncation attribute function useful.
> 
> 
> 
> http://www.adaic.org/resources/add_content/standards/12rm/html/RM-A-5-3.html
> 
> 
> 
> -- 
> 
> Jeff Carter
> 
> "Nobody expects the Spanish Inquisition!"
> 
> Monty Python's Flying Circus
> 
> 22

Would you mind showing an example please...


  reply	other threads:[~2014-10-01  2:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01  1:49 casting types Stribor40
2014-10-01  2:06 ` Jeffrey Carter
2014-10-01  2:13   ` Stribor40 [this message]
2014-10-01  2:56   ` Stribor40
2014-10-01 13:18     ` Dennis Lee Bieber
2014-10-01 13:55       ` Stribor40
2014-10-01 14:23         ` G.B.
2014-10-01 17:16           ` Stribor40
2014-10-01 17:38             ` Dirk Heinrichs
2014-10-02  1:47               ` Dennis Lee Bieber
2014-10-01 18:11         ` Jeffrey Carter
2014-10-02  9:21         ` Brian Drummond
2014-10-02  9:24     ` Brian Drummond
2014-10-03  3:35       ` Stribor40
2014-10-03  7:45         ` Björn Lundin
2014-10-03  8:29         ` Jacob Sparre Andersen
2014-10-06 23:36           ` brbarkstrom
2014-10-07  0:03             ` Jeffrey Carter
2014-10-07  0:21               ` brbarkstrom
replies disabled

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