---
title: "Discussion on \"Go 01 - Convert temperatures\" | Hashnode"
description: "Discussion on \"Go 01 - Convert temperatures\". Convert Fahrenheit to Celsius\nHere is a simple function that takes a temperature in Fahrenheit and returns the equivalent temperature in Celsius:\nfunc fahrenheitToCelsius(fahrenheit float64) float64 {\n    return (fahrenheit - 32) * 5/9\n}\n\nThis functi..."
url: "https://hashnode.com/posts/go-01-convert-temperatures/63b2f2335b26e8ebaa40510a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Go 01 - Convert temperatures](https://code-harmony.hashnode.dev/go-01-convert-temperatures?utm_source=hashnode&utm_medium=feed)

Convert Fahrenheit to Celsius Here is a simple function that takes a temperature in Fahrenheit and returns the equivalent temperature in Celsius: func fahrenheitToCelsius(fahrenheit float64) float64 { return (fahrenheit - 32) \* 5/9 } This functi...

Jan 2, 2023 · 2 min read · code-harmony.hashnode.dev  
Read the article

-   [#golang](https://hashnode.com/tag/golang)
-   [#go](https://hashnode.com/tag/go)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Jürgen Ryannel](https://hashnode.com/@jryannel)

@jryannel

  
[View profile](https://hashnode.com/@jryannel)

Enjoy your life and life in harmony with the code you wrote.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
