Post Reply 
How to round an HMS number? [SOLVED]
01-01-2018, 05:01 PM
Post: #2
RE: How to round an HMS number?
I don't know it this could help you, but I do as above in my program Effemeridi (Ephemeris) with angles:

Code:

trunc_angle(ang)
// trunc decimal from a DEG form angle
BEGIN
  →HMS((IP(HMS→(ang)*3600)/3600));
END;

simp_angle(ang)
BEGIN
  LOCAL angle;
  angle:=360*FP(ang/360);
  IF angle<0 THEN
  angle:=angle+360
  END;
  RETURN angle;
END;

HNY!

Salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How to round an HMS number? [SOLVED] - JMB - 01-01-2018, 04:53 PM
RE: How to round an HMS number? - salvomic - 01-01-2018 05:01 PM
RE: How to round an HMS number? - JMB - 01-01-2018, 05:58 PM
RE: How to round an HMS number? - salvomic - 01-01-2018, 05:59 PM
RE: How to round an HMS number? - JMB - 01-01-2018, 06:15 PM



User(s) browsing this thread: 1 Guest(s)