RE: [OT] Rounding v Truncation, was: Re: Platform Support vs.
From: O'Brien Paddy (Paddy.O'Brien_at_transgrid.com.au)
Date: 07/28/05
- Previous message: Larry Kilgallen: "Re: To determine idle processes and users"
- Maybe in reply to: Simon Clubley: "[OT] Rounding v Truncation, was: Re: Platform Support vs."
- Next in thread: Tom Linden: "Re: [OT] Rounding v Truncation, was: Re: Platform Support vs."
- Reply: Tom Linden: "Re: [OT] Rounding v Truncation, was: Re: Platform Support vs."
- Reply: John Santos: "Re: [OT] Rounding v Truncation, was: Re: Platform Support vs."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 28 Jul 2005 19:08:03 +1000
-----Original Message-----
From: Dave Weatherall [mailto:djw-nothere@nospam.nohow]
Sent: Thu 7/28/2005 3:33 PM
To: Info-VAX@Mvb.Saic.Com
Subject: Re: [OT] Rounding v Truncation, was: Re: Platform Support vs.
On Wed, 27 Jul 2005 13:18:19 UTC, "Tom Linden" <tom@kednos.com> wrote:
> > Every programming language has it's own set of rules for implicit
> >> conversion.
> > Is the difference here not down to explicit (casted) versus implicit
> > conversion?
> Indeed, that is why I said IMPLICIT conversion. Each language has its own
> set of rules
> If you don't exploit EXPLICIT conversion then you had better know the
> rules.
Indeed you did Tom. Sorry, I was thinking more about Simon's Ada
Integer cast when I tapped the keyboard and your example code
(obviously:-)) fitted in with my thought.
-- Cheers - Dave W. ******** I cannot argue with the concept of each language having it's own rules. However, if we are doing integer arithmetic then I firmly believe that we should truncate. In Fortran, I can do things like IF (a/2*2.EQ.0) blah blah. This cannot work with rounding. Why do other languages need truncation or rounding rules? Integer arithmetic is Integer arithmetic and in mathematics, it works as truncation. I learnt trunction rules in integers before I learnt rounding rules in Reals. Regards, Paddy *********************************************************************** "This electronic message and any attachments may contain privileged and confidential information intended only for the use of the addressees named above. If you are not the intended recipient of this email, please delete the message and any attachment and advise the sender. You are hereby notified that any use, dissemination, distribution, reproduction of this email is prohibited. If you have received the email in error, please notify TransGrid immediately. Any views expressed in this email are those of the individual sender except where the sender expressly and with authority states them to be the views of TransGrid. TransGrid uses virus-scanning software but excludes any liability for viruses contained in any attachment. Please note the email address for TransGrid personnel is now firstname.lastname@transgrid.com.au" ***********************************************************************
- Previous message: Larry Kilgallen: "Re: To determine idle processes and users"
- Maybe in reply to: Simon Clubley: "[OT] Rounding v Truncation, was: Re: Platform Support vs."
- Next in thread: Tom Linden: "Re: [OT] Rounding v Truncation, was: Re: Platform Support vs."
- Reply: Tom Linden: "Re: [OT] Rounding v Truncation, was: Re: Platform Support vs."
- Reply: John Santos: "Re: [OT] Rounding v Truncation, was: Re: Platform Support vs."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|