comp.lang.ada
 help / color / mirror / Atom feed
  • * Re: String to Integer conversion?
           [not found] <c1.2b8.2Lzh62$03A@zesi.ruhr.de>
           [not found] ` <6ndi5d$uj3@gcsin3.geccs.gecm.com>
    @ 1998-07-31  0:00 ` Matthew Heaney
      1998-07-31  0:00   ` daniel gaudry
      1 sibling, 1 reply; 11+ messages in thread
    From: Matthew Heaney @ 1998-07-31  0:00 UTC (permalink / raw)
    
    
    haug@localhost.ruhr.de (Haug Buerger) writes:
    
    >    i can't believe it, but i found no function in the Standard
    > libs to convert a string, "123", to Integer(123). I found some
    > GNAT internal functions that do it, but isn't there a standard
    > way to do it?
    
    Use the attribute Integer'Value.
    
    declare 
       I : constant Integer := Integer'Value ("123");
    begin
    
    
    QED
    
    
    
    
    ^ permalink raw reply	[flat|nested] 11+ messages in thread

  • end of thread, other threads:[~1998-08-04  0:00 UTC | newest]
    
    Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <c1.2b8.2Lzh62$03A@zesi.ruhr.de>
         [not found] ` <6ndi5d$uj3@gcsin3.geccs.gecm.com>
    1998-07-31  0:00   ` String to Integer conversion? Matthew Heaney
    1998-07-30  0:00     ` nabbasi
    1998-08-01  0:00     ` Robert Dewar
    1998-08-01  0:00       ` Matthew Heaney
    1998-08-02  0:00         ` Robert Dewar
    1998-08-02  0:00           ` Matthew Heaney
    1998-08-04  0:00             ` Robert Dewar
    1998-08-04  0:00               ` Matthew Heaney
    1998-08-04  0:00                 ` David C. Hoos, Sr.
    1998-07-31  0:00 ` Matthew Heaney
    1998-07-31  0:00   ` daniel gaudry
    

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