Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!isgate!krafla!aries From: aries@rhi.hi.is (Reynir Hugason) Newsgroups: comp.sys.mac.programmer Subject: Re: Converting COMP to EXTENDED to STRING Keywords: SANE CONVERSION FUNCTION PASCAL MPW Message-ID: <1861@krafla.rhi.hi.is> Date: 23 Jul 90 11:00:56 GMT References: <1990Jul22.180337.17771@altitude.CAM.ORG> Distribution: comp Organization: University of Iceland Lines: 12 >FUNCTION Number2Str(var ExtendedNumber:Extended):DecStr; ^^^ Your headache lies in the VAR part of your function declaration. The Pascal compiler can easily transform an INTEGER or a COMP to an Extended, but transforming an EXTENDED to an INTEGER is a bit harder than that. If that's what you want to do you'll have to use SANE's Num2Integer or Num2Comp. --- Mimir (aries@rhi.hi.is) - Aries, Inc.