comp.lang.ada
 help / color / mirror / Atom feed
* Converting integer to float
@ 1997-07-31  0:00 Antti Piril�
  1997-08-01  0:00 ` Matthew Heaney
  0 siblings, 1 reply; 2+ messages in thread
From: Antti Piril� @ 1997-07-31  0:00 UTC (permalink / raw)



How to convert an integer value to float?

  -ant@norssi.helsinki.fi




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

* Re: Converting integer to float
  1997-07-31  0:00 Converting integer to float Antti Piril�
@ 1997-08-01  0:00 ` Matthew Heaney
  0 siblings, 0 replies; 2+ messages in thread
From: Matthew Heaney @ 1997-08-01  0:00 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 630 bytes --]


In article <5rqvii$16s$1@oravannahka.Helsinki.FI>, ant@news.helsinki.fi
(Antti Piril�) wrote:

>How to convert an integer value to float?

declare
    I : Integer := 2;
    F : Float := Float (I);
begin

A simple type conversion is all that's required.

The nature of your question suggests that you are a programmer new to Ada. 
If you want a learn more, you can find some tutorials (Lovelace is a
popular one) at the Ada home page:

<http://www.adahome.com>

--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271




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

end of thread, other threads:[~1997-08-01  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-31  0:00 Converting integer to float Antti Piril�
1997-08-01  0:00 ` Matthew Heaney

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