Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!tank!uwvax!umn-d-ub!umn-cs!ux.acs!jfm From: jfm@ux.acs.umn.edu (Jim Miner) Newsgroups: comp.sys.mips Subject: Re: pascal writeln format error? Keywords: pascal,writeln Message-ID: <1015@ux.acs.umn.edu> Date: 10 Jan 90 01:23:59 GMT References: <15473@boulder.Colorado.EDU> <34282@mips.mips.COM> Reply-To: jfm@ux.acs.umn.edu (Jim Miner) Distribution: comp.sys.mips,comp.lang.pascal Organization: Univeristy of Minnesota / ACSS Languages Group Lines: 11 In article <34282@mips.mips.COM> zaineb@mips.COM (Zaineb Asaf) writes: >>>From: putz@boulder.Colorado.EDU (Eric Putz) >>> writeln(1.0:1:0) gives me 1.0e+00. > >The above statement is incorrect according to Standard Pascal. >Therefore, this problem is a user error; however, the compiler will be changed >to give a runtime error if this situation will happen. Standard Pascal does make this an error. Interestingly, Extended Pascal permits FractDigits to be zero. The result would be "1." (not "1" as desired by Eric Putz).