Turning the decimal point OFF

Turning the decimal point OFF

Postby ScottJ » Sun Feb 21, 2021 9:45 pm

I have a program that is obtaining and printing degrees, minutes, and seconds of lat/lon coordinates. I use decimal seconds to three places, but degrees and minutes are integers.

When I put these numbers into the alpha register for printing in FIX 0, the trailing decimal point remains. So the output string looks stupid: 78. 19. 10.354 NORTH

Short of doing string manipulation on each number, is there a way to turn OFF the radix marker altogether so integers look like integers?

Thanks in advance for any ideas.
ScottJ
...
...
 
Posts: 7
Joined: Fri Feb 12, 2021 1:08 am

Re: Turning the decimal point OFF

Postby dlachieze » Sun Feb 21, 2021 10:26 pm

CF 29 after FIX 0 will suppress the decimal point.
dlachieze
.....
.....
 
Posts: 17
Joined: Wed Mar 11, 2009 9:39 am

Re: Turning the decimal point OFF

Postby ScottJ » Mon Feb 22, 2021 6:40 am

dlachieze wrote:CF 29 after FIX 0 will suppress the decimal point.


Thanks much!
ScottJ
...
...
 
Posts: 7
Joined: Fri Feb 12, 2021 1:08 am


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest