Initial MVP commit
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
This commit is contained in:
17
internal/platform/constants/conversion.go
Normal file
17
internal/platform/constants/conversion.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package constants
|
||||
|
||||
func CelsiusToFahrenheit(c float64) float64 {
|
||||
return c*9.0/5.0 + 32.0
|
||||
}
|
||||
|
||||
func FahrenheitToCelsius(f float64) float64 {
|
||||
return (f - 32.0) * 5.0 / 9.0
|
||||
}
|
||||
|
||||
func KmhToMph(kmh float64) float64 {
|
||||
return kmh * MphPerKmh
|
||||
}
|
||||
|
||||
func MphToKmh(mph float64) float64 {
|
||||
return mph * KmhPerMph
|
||||
}
|
||||
Reference in New Issue
Block a user