Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Mundt Due
goplay
Commits
0919aea5
Commit
0919aea5
authored
Nov 11, 2018
by
Anders Mundt Due
Browse files
when returning K, K's gotta be the value :)
parent
a56641d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tempconv/conv.go
View file @
0919aea5
...
...
@@ -10,4 +10,4 @@ func CToK(c Celcius) Kelvin { return Kelvin(c+273.15) }
// FtoC convert Fahrenheit to Celcius
func
FToC
(
f
Fahrenheit
)
Celcius
{
return
Celcius
((
f
-
32
)
*
5
/
9
)
}
func
FToK
(
f
Fahrenheit
)
C
el
cius
{
return
Kelvin
(
FToC
(
f
))
}
func
FToK
(
f
Fahrenheit
)
K
el
vin
{
return
Kelvin
(
FToC
(
f
))
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment