How do I get the Integer Value of a decimal number??

Use the round block.

Format decimal block may work as well by setting the places to 0 ( not tested )

Round dosent work well. If it is 28.931, I get 29 !!! I shud be getting 28

Split text at `.`

Select first item

What you do depends on what you are attempting to do. The equations to convert Convert Degree Decimal to Degree Minute Second are:

https://www.engineersedge.com/calculators/minutes_seconds.htm

If you want to round down a decimal, try floor

Here is how to convert **Decimal Degrees to Degrees Minutes Second** and how to convert **DMS to Decimal degrees** for anyone who is interested

1 Like