Files

8 lines
199 B
Go

// Package unitconv provides useful unit conversions
package unitconv
// MsToKph converts a float64 representing m/s to an int representing km/h
func MsToKph(v float32) int {
return int(3.6 * v)
}