Subject: | |
From: | |
Reply To: | |
Date: | Sat, 19 Feb 2005 18:32:43 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
> If HPMINUTE > 30 then you'd have to add some checking and math, something
> like
> and IF ... THEN ... ELSE check to subtract 30 from the minutes and add 1
> to the
> hour.
which is what I am trying to avoid having to do. I thought that maybe there
was some way to perhaps both add and subtract a value, and then take the
absolute value of the result, or something cunning like that. I want to
calculate once, not evaluate and then calculate, if you follow my meaning.
Again, best I've come up with is ((hour x 60) + 30) / 60 for the hour, and
mod ((hour x 60) + 30) 60 for the minutes.
Greg Stigers
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|