🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #203

Re: Fixed Point Output with WriteReal

#203
From: Chuck Lins
Date: Mon, 07 Aug 1989 16:49
27 lines
1749 bytes
In article <INFO-M2%89080522371415@UCF1VM> you write:
>
>   Hi. I'm a neophyte in Modula-2 and I have a very simple question to
>ask.  Is it possible to get fixed point rather than floating point
>output using WriteReal (a la FORTRAN F6.3 for eg).  The book that
>I'm using now does not mention anything about fixed point output, so
>maybe I'm missing something.  Would appreciate a reply.  Thanks.
>
>Chua KS.

This is one of the flaws of the RealInOut module - it lacks a parameter
specifying the precision or whether to use fixed or floating point output.
Of course, it's always possible to write your own routine to do this but you
shouldn't have to. If your compiler system doesn't include such a feature
complain to the vendor. If enough people complain they might actually add the
feature.

A cheap workaround exists if your compiler supports declaration of EXTERNAL
routines which are coded in another language AND you have a routine written in
another language that does what you want. You can declare the routine as
EXTERNAL and then make calls to it as though it was written in Modula-2.


--
Chuck Lins                      | "Exit right to funway."
Internet:   lins@apple.com      | AppleLink: LINS
Snail Mail: 20525 Mariani Ave. M/S: 41-K Cupertino, CA 95014
Technical Details
Message-ID: <8908071649.AA29015@apple.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!ucbvax!APPLE.COM!lins
References: <INFO-M2%89080522371415@UCF1VM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!ucbvax!APPLE.COM!lins
From: lins@APPLE.COM (Chuck Lins)
Newsgroups: comp.lang.modula2
Subject: Re: Fixed Point Output with WriteReal
Message-ID: <8908071649.AA29015@apple.com>
Date: 7 Aug 89 16:49:27 GMT
References: <INFO-M2%89080522371415@UCF1VM>
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: Modula2 List <INFO-M2%UCF1VM.bitnet@jade.berkeley.edu>
Organization: Apple Computer Inc, Cupertino, CA
Lines: 27