diff options
| author | sam-anthony <samanthony6@protonmail.com> | 2022-03-26 16:30:43 -0230 |
|---|---|---|
| committer | sam-anthony <samanthony6@protonmail.com> | 2022-03-26 16:30:43 -0230 |
| commit | 42f2f6419bbff03931654e52a885b0600eec9b9b (patch) | |
| tree | 97f089dd0132f9a13e22e3654fd8246c3254b3bb /temperature.go | |
| parent | 0c5d33fc817047ab2c2c9dd3ed6784c032755819 (diff) | |
| download | volute-42f2f6419bbff03931654e52a885b0600eec9b9b.zip | |
pressure ratio
Diffstat (limited to 'temperature.go')
| -rw-r--r-- | temperature.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/temperature.go b/temperature.go index 89cb1ba..7562ca7 100644 --- a/temperature.go +++ b/temperature.go @@ -64,7 +64,7 @@ func (t temperature) asUnit(u temperatureUnit) (float32, error) { case kelvin: return c + 272.15, nil case fahrenheit: - return c * (9.0 / 5.0) + 32.0, nil + return c*(9.0/5.0) + 32.0, nil default: return 0, errors.New(fmt.Sprintf("invalid temperatureUnit: '%v'", u)) } |