Article View: net.lang.pascal
Article #63Floating Point trunc?
From: barrett
Date: Tue, 14 Feb 1984 22:37
Date: Tue, 14 Feb 1984 22:37
12 lines
1013 bytes
1013 bytes
Ok. I have a nitty gritty pascal question for people.
All I want to do is to remove the fractional part of a real number,
in a machine-independent fashion using vanilla J&W pascal only.
You are NOT allowed to generate an integer during the calculation, ala
real_value := trunc(real_value); { integer overflow may occur }
any ideas?
Dave Barrett
(hp-dcd!barrett)
Technical Details
Message-ID:
<20300001@hp-dcde.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!decvax!harpo!seismo!hao!hplabs!hp-pcd!hpfcla!hp-dcde!barrettShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: notesfiles Path: arc1-ca.pugleaf.net!utzoo!linus!decvax!harpo!seismo!hao!hplabs!hp-pcd!hpfcla!hp-dcde!barrett From: barrett@hp-dcde.UUCP Newsgroups: net.lang.pascal Subject: Floating Point trunc? Message-ID: <20300001@hp-dcde.UUCP> Date: Tue, 14-Feb-84 17:37:00 EST Article-I.D.: hp-dcde.20300001 Posted: Tue Feb 14 17:37:00 1984 Date-Received: Sun, 19-Feb-84 02:41:17 EST Organization: Hewlett-Packard Fort Collins Systems Division - Fort Collins, CO Lines: 12 Nf-ID: #N:hp-dcde:20300001:000:389 Nf-From: hp-dcde!barrett Feb 14 14:37:00 1984