From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 23 Mar 92 19:27:55 GMT From: cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!src.honeywell.com!sa ifr00.cfsat.honeywell.com!dunbar@ucbvax.Berkeley.EDU (Mark Dunbar) Subject: Re: Wanted: string conversion in Ada Message-ID: <1992Mar23.192755.20894@saifr00.cfsat.honeywell.com> List-Id: In article <1992Mar23.175436.23472@src.honeywell.com> englehar@src.honeywell.co m (Matt Englehart) writes: >Does anyone have a string conversion package that I could use? I want >something like C's sprintf. (to do atoi, atof ...) > If you have access to Text_IO in your system, it includes procedures to to convert strings to integer, integer to string, string to float, etc. If you instantiate integer_io (contained in Text_IO), then Your_Integer_IO.Get( -- converts from string to integer Your_Integer_IO.Put( -- converts from integer to string ditto for float_IO and fixed_IO. See the specification of Text_IO in you LRM for details. Mark Dunbar