Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!apple!APPLELINK.APPLE.COM!RADSOFT From: RADSOFT@APPLELINK.APPLE.COM (Richard Eames) Newsgroups: comp.sys.mac.programmer Subject: Re: Some LSP questions Message-ID: <2941@internal.Apple.COM> Date: 20 Jul 89 19:24:38 GMT References: <2806@ssc-vax.UUCP> Sender: usenet@Apple.COM Lines: 25 In article <2806@ssc-vax.UUCP> housen@ssc-vax.UUCP (Kevin Housen) writes: > (1) How can I convert an integer (or longint) to a variable of type real. > I sometimes want to pass integer quantities to procedures that want > real arguments. In Fortran parlance, this is just float(integer). What > do I do in Pascal? This is one of those rare instances where it is easier than you can beleive: PROGRAM MyProg; VAR MyInt: integer; MyReal: Real; BEGIN MyInt:=654; MyReal:=MyInt; {This really works, trust me...even on LongInt} END. Hope that helps....don't know about the rest of your questions. ############################################## These thoughts are mine, not # "Anyltus and Meletus have the Power to # Apple Computer's. Blame me, # put me to death, but not to harm me." -- # not them. # SOCRATES # ##############################################