Xref: utzoo comp.sys.mips:410 comp.lang.pascal:2906 Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!sunic!tut!ra!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi LASK) Newsgroups: comp.sys.mips,comp.lang.pascal Subject: Re: pascal writeln format error? Keywords: pascal,writeln Message-ID: <1990Jan10.103056.17268@uwasa.fi> Date: 10 Jan 90 10:30:56 GMT References: <15473@boulder.Colorado.EDU> Distribution: comp.sys.mips,comp.lang.pascal Organization: University of Vaasa Lines: 21 In article <15473@boulder.Colorado.EDU> putz@boulder.Colorado.EDU (Eric Putz) writes: > >I am having a problem getting writeln to output a number with a decimal value >of 0, not in the 'e' format, and am not sure if this is a compiler bug, or >a feature of pascal. I have tried the following lines with the following >results: > writeln(1.0:1:1) gives me 1.0 > writeln(1.0:1:0) gives me 1.0e+00. >What I was hoping for was 1 when writeln was given a decimal value of 0. >All other decimal values I have tried (> 0) have worked correctly. The >compiler I am using is MIPS Pascal 2.0 (from RISC/os4.00 & cmplrs2.0) on >an M2000. Any thoughts? Thanks in advance. This is off the cuff, and concerns Turbo Pascal (so no guarantees), but try writeln(1.0:0:0) ................................................................... Prof. Timo Salmi (Site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: vakk::salmi Bitnet: salmi@finfun