PHP convert kilometers / hours to Nautical miles / hours

-2

How do I convert a Km / h value into nautical miles?

Example: I have a value of 49km / h I need to convert this value to nautical miles hour "Mn / h" does anyone know how to do this function to convert I searched the php site more than I found

    
asked by anonymous 26.12.2017 / 19:25

2 answers

0

Considering that 1 nautical mile is equivalent to 1,852 km , to convert Km / h into mn / h

Divide the value into Km by 1,852 :

<?php
function kmh_to_mnh($v){

   $mnH = $v / 1.852;

   return $mnH.'mn/h';
}

echo kmh_to_mnh(50); // 50Km/h -> 26.99784017278mn/h
?>
    
26.12.2017 / 21:53
-1

Good afternoon, would not you just multiply the value by 0.5396118?

    
26.12.2017 / 19:46