Java tutorial
//package com.java2s; public class Main { /** * Converts speed from m/s to km/h * @param speedMs * @return */ public static int ms2Kmh(float speedMs) { return (int) Math.round(speedMs * 3.6); } }