iPOGO
Home FAQs Center Help Manual Development Contact Us
Development

Status
RESOLVED
FUTURE
 
CodeModule
DXFIN
DXFOUT
IMPORT
MAIN
MBD
TRAV
WHIP!
 
Legal Notices   Message Board

iPOGO Development Center Report #175

#175 MAIN - Resolved - Seconds in bearings are not rounded correctly
BugNo 175
CodeModule MAIN
Status Resolved
Title Seconds in bearings are not rounded correctly
Description When the seconds are not whole numbers, the output is rounded incorrectly in two ways. The number 0.5 is rounded down to 0. Should be rounded up to 1. Bearings close to a minute that have uneven seconds values do not round to the minute properly. Example 89 59 60 should be 90 0 0. See code below to reproduce the above behaviour.
Comments $ tests for bearing rounding

/*
rounding problem
----------------
*/

0 1 1000 1000 ;
1 2 1
-1 89 0 0.5 $ 0.5 rounds down, should go up
50
-1 89 0 0.51 $ 0.51 rounds up
50 9e9 100 100 0;

91;
15.1 pl pl 1 1 1;
15 pl;
7 1 1 -5 1; $ These inversed bearings will have 59'60" in the output.

/*
89 59 60 problem
-----------------
*/

0 11 1000 1000 ;
1 12 1
-1 89 59 59.51
50
-9e9
50 9e9 100 100 0;

15 pl;
7 1 11 -15 1;
FiledBy jl
FiledDate 04/11/2000
ResolvedDate 04/12/2000
Resolution -
VersionNo 4.0 Beta
iPOGO V5 Help Manual On-Line, Copyright © 1994-2002 POGO Partnership, LLP. All Rights Reserved.