Xref: utzoo comp.sys.mips:414 comp.lang.pascal:2909 Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!sunic!draken!d88-eli From: d88-eli@nada.kth.se (Erik Liljencrantz) Newsgroups: comp.sys.mips,comp.lang.pascal Subject: Re: pascal writeln format error? Keywords: pascal,writeln Message-ID: <2689@draken.nada.kth.se> Date: 10 Jan 90 18:13:39 GMT References: <15473@boulder.Colorado.EDU> Reply-To: d88-eli@nada.kth.se (Erik Liljencrantz) Distribution: comp.sys.mips,comp.lang.pascal Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 11 In article <15473@boulder.Colorado.EDU> putz@boulder.Colorado.EDU (Eric Putz) writes: >[deleted] > writeln(1.0:1:1) gives me 1.0 > writeln(1.0:1:0) gives me 1.0e+00. >[deleted] A real with no decimals... Eureka! It's an INTEGER! Try this: writeln(round(1.0):1) gives 1 This should work as long as the real number is within the integer range. -- Erik Liljencrantz | "No silly quotes!!" d88-eli@nada.kth.se | Embraquel D. Tuta