D
da Vinci
Hi Gents,
This is what I am trying to do.
Say you have a double or a float with the value 14.5624 for example.
How could I take that variable and get the 14 into an integer variable
and the .5624 into a double or float?
The reason is because of converting decimal locations into DMS. Math
is simple....
14.5624 = 14 degrees .5624 minutes. Take the .5624 * 60 = 33.744 - 33
minutes .744 seconds. Then do it all over again so .744*60 = 44.64 -
45 seconds.
Basically, I do not know how to get the whole number out into an
integer variable and taking just the decimal place numbers into a
double or float.
Any help is appreciated.
This is what I am trying to do.
Say you have a double or a float with the value 14.5624 for example.
How could I take that variable and get the 14 into an integer variable
and the .5624 into a double or float?
The reason is because of converting decimal locations into DMS. Math
is simple....
14.5624 = 14 degrees .5624 minutes. Take the .5624 * 60 = 33.744 - 33
minutes .744 seconds. Then do it all over again so .744*60 = 44.64 -
45 seconds.
Basically, I do not know how to get the whole number out into an
integer variable and taking just the decimal place numbers into a
double or float.
Any help is appreciated.