Xref: utzoo comp.sys.mac.programmer:11668 comp.sys.mac:45998 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!usc!apple!apple.COM!han From: han@apple.COM (Byron Han, Project Scapegoat) Newsgroups: comp.sys.mac.programmer,comp.sys.mac Subject: Re: StringToReal? Message-ID: <6122@internal.Apple.COM> Date: 11 Jan 90 16:56:45 GMT References: <18429@dartvax.Dartmouth.EDU> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. - N&C Lines: 24 In article <18429@dartvax.Dartmouth.EDU> boz@eleazar.dartmouth.edu (John Boswell) writes: > the dialog box (GetItext, or some > such thing), puts the data into a STRING variable. I unfortunately need a > REAL value here! There would be no problem if I needed an integer, since > StringToNum would do the trick (I guess). Does anyone know if there is > a similar function to convert to a real-type value? In the SANE package, there is a routine, Str2Num which converts a string to a number. Hope this helps. +-------------------------------------------------------------------------+ | Disclaimer: Apple has no connection with my postings. | +-------------------------------------------------------------------------+ Byron Han, CommToolbox Scapegoat "DeAnza 3 - R.I.P. - 10/17/89 5:04PM" Apple Computer, Inc. -------------------------------- 20525 Mariani Ave, MS 69L Internet: han@apple.COM Cupertino, CA 95014 UUCP:{sun,voder,nsc,decwrl}!apple!han -------------------------------- GENIE:BYRONHAN CompuServe:72167,1664 ATTnet: 408-974-6450 Applelink:HAN1 HAN1@applelink.apple.COM ---------------------------------------------------------------------------