View Single Post
  #1  
Unread 05-11-2020, 10:22 PM
Marobs Marobs is offline
The Wary
 
Join Date: May 2020
Posts: 4
how to shorten coordinates ???

hi,

I have in mine craftbuild a gps service.
Now i have the problem with the coordinates.
If i ask them trought the gps i get like x = 159.357 y = 65.349 z = 469.248.
now i want to shorten them so i only have left what is infront the dot.
like this x = 159 y = 65 z = 469.

how can i do this in lua code, i try to learn all i can from lua.
but some times need help. cant do it all alone.
its as they say, only together we can do it all.

thnx alot already for the help.

and btw im dutch so dont lock at type errors.

greets.

Last edited by Marobs : 05-11-2020 at 10:22 PM. Reason: typo
Reply With Quote