Article View: comp.lang.modula2
Article #1258Re: INTEGER to LONGREAL
From: Greg Granger
Date: Wed, 17 Oct 1990 19:37
Date: Wed, 17 Oct 1990 19:37
20 lines
1463 bytes
1463 bytes
On Wed, 17 Oct 90 05:02:47 GMT Robert L Barton said: >> x:= VAL(LONGREAL, i); > > I would hope this doesn't work, since VAL() is meaningless for LONGREALs. >And ISO M-2 may do away with LONGREALs anyway. > >----------------------------------------------------------------------- Well sorry to rain on your parade, but in TopSpeed that is exactly how it works. As to standards, well sometimes what works is more useful than what is standard. I found no reference to LONGREALs in N Wirth's 3th ed of PIM2 and I don't know much about the ISO M2 work (cept it's not finished). If it were up to me I would do things differently, but it's not.... (I really don't care for all that type casting and explict conversion, wish someone would expand "the standard" (what ever it is) to include operator overloading then I overload '+' to add int's to card's or card's to real's or ... apples to oranges <grin>) Greg
Technical Details
Message-ID:
<INFO-M2%90101715525164@UCF1VM.BITNET>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!dog.ee.lbl.gov!pasteur!ucbvax!VTVM1.BITNET!GRANGERGReferences:
<ogicse!pdxgate!eecs.cs.pdx.edu!bartonr@UCSD.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!dog.ee.lbl.gov!pasteur!ucbvax!VTVM1.BITNET!GRANGERG From: GRANGERG@VTVM1.BITNET (Greg Granger) Newsgroups: comp.lang.modula2 Subject: Re: INTEGER to LONGREAL Message-ID: <INFO-M2%90101715525164@UCF1VM.BITNET> Date: 17 Oct 90 19:37:44 GMT References: <ogicse!pdxgate!eecs.cs.pdx.edu!bartonr@UCSD.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Modula2 List <INFO-M2%UCF1VM.BITNET@ucf1vm.cc.ucf.edu> Organization: The Internet Lines: 20