comp.lang.ada
 help / color / mirror / Atom feed
From: Bruno <brunomendoza@gmail.com>
Subject: Type casting
Date: Mon, 26 Oct 2009 19:26:54 +0000
Date: 2009-10-26T19:26:54+00:00	[thread overview]
Message-ID: <1256585214.3272.12.camel@HERMES> (raw)
In-Reply-To: <4acdb7aa$0$283$14726298@news.sunsite.dk>


Hi, 

I have a small mess with the conversion of numeric types in the
following program 

http://paste.ideaslabs.com/show/q6vOGqlyYJ 

I really do not know how to interpret the operation (E / 2) because
although the operation is composed of two numbers such as "Positive"
outcome can be of type "Float" and, of course, the "Integer" (attribute)
returns an integer but the closest to real number and what 
need my program is that it returns the integer part regardless 
the decimal part. 

I tried creating a small building under the following function 

http://paste.ideaslabs.com/show/7y97bn4G6 

but by requiring Float type parameters for the algorithm does not work 
prev. 

Can anyone shed some light on the conversion rate and the 
problem presented to me? 

Thank you. 




  reply	other threads:[~2009-10-26 19:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-07 12:40 Ada.Directories.Base_Name and dot files 
2009-10-07 14:46 ` Yannick Duchêne Hibou57
2009-10-07 17:06   ` 
2009-10-07 14:52 ` Adam Beneschan
2009-10-07 17:06   ` 
2009-10-07 15:10 ` Adam Beneschan
2009-10-07 15:37   ` Yannick Duchêne Hibou57
2009-10-11  2:39     ` Randy Brukardt
2009-10-07 20:11   ` 
2009-10-08  9:39 ` Stephen Leake
2009-10-08  9:58   ` 
2009-10-26 19:26     ` Bruno [this message]
2009-10-26 20:02       ` Type casting Jeffrey R. Carter
2009-10-26 20:09       ` Adam Beneschan
2009-10-26 19:27     ` Conversions Bruno
2009-10-26 20:09       ` Conversions Jeffrey R. Carter
2009-10-26 20:19       ` Conversions Adam Beneschan
replies disabled

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