Round decimal number
Posted: Tue Aug 20, 2019 11:59 am
Is it possible to round a number like 2555.550055 to 2555.55 ?
:local rawLat "3820.0410"
:local rawLon "-12242.2638"
:local latDecimalPosition [:pick $rawLat -1 ([:find $rawLat "." -2]+3) ]
:local lonDecimalPosition [:pick $rawLon -1 ([:find $rawLon "." -2]+3) ]
:log info ("$latDecimalPosition"."N/$lonDecimalPosition"."W" )