comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <jacob@jacob-sparre.dk>
Subject: Re: casting types
Date: Fri, 03 Oct 2014 10:29:31 +0200
Date: 2014-10-03T10:29:31+02:00	[thread overview]
Message-ID: <87iok1d09g.fsf@adaheads.sparre-andersen.dk> (raw)
In-Reply-To: 0e236d4b-2ece-4179-850c-46a0572f8339@googlegroups.com

Stribor40 wrote:

> Now I would like to save this 81.00000 as an integer to some
> variable. Can you please show me how to do this please

You can't do that without having declared (or chosen) an appropriate
integer type, and declared a variable of that type.

Once that is done, you write:

   Variable := Type (81.00000);

Greetings,

Jacob
-- 
"constructive ambiguity"


  parent reply	other threads:[~2014-10-03  8:29 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
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 [this message]
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