Xref: utzoo comp.sys.mips:406 comp.lang.pascal:2903 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!uakari.primate.wisc.edu!ames!ncar!boulder!putz From: putz@boulder.Colorado.EDU (Eric Putz) Newsgroups: comp.sys.mips,comp.lang.pascal Subject: pascal writeln format error? Keywords: pascal,writeln Message-ID: <15473@boulder.Colorado.EDU> Date: 9 Jan 90 20:25:31 GMT Sender: news@boulder.Colorado.EDU Distribution: comp.sys.mips,comp.lang.pascal Lines: 18 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. +--------- |Eric Putz (303)492-1474 |MCD Biology, Campus Box 347, University of Colorado, Boulder CO 80309 |putz@Boulder.Colorado.EDU