Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

km/h a m/s

km/h -> m/s
divide by 3.6

m/s -> km/h
multiply by 3.6

mps = 60
def convertToKph(n):
  return n * 3.6
kph = 360
def convertToMps(n):
  return n / 3.6

new_kph = convertToKph(mps)
# new_kph = 216
new_mps = convertToMps(kph)
# new_mps = 100
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
5+4 =