Remove unit from GPS data - string operators - variable type

Hi,
I am struggling with a very simple task.
I am trying to get the value of the GPS altitude.

local Gps [ /system/gps/monitor once as-value ];
/log/info ($Gps->"altitude");

It will return “1.480000 m”

Now I’m trying to get the altitude value without the unit.

local Gps [ /system/gps/monitor once as-value ];
/log/info (pick ($Gps->"altitude") 0 len(($Gps->"altitude")-2));

But I get the following result: “00:01:29” instead. It seems that it was transtyped as a time instead of string or a number…

How can I trim the measurement unit and keep only the value as a number (or string)?

Bad assumptions: RouterOS do not support decimal numbers, only integer, so, only string if dot is present,
or convert (using strings splitting at the dot) 1.480000 m to 1480 mm or 1480000 µm

Use correct syntax, is full of errors and omissions.

:local monGPS [/system gps monitor once as-value]
:local fullAltitude ($monGPS->“altitude”)
:local unitlessAltitude [:pick $fullAltitude 0 [:find $fullAltitude " " -1]]
/log info $unitlessAltitude
:local xGps [/system gps monitor once as-value]
/log info [:pick ($xGps->“altitude”) 0 ([:len ($xGps->“altitude”)] - 2)]

Thanks