diff options
| author | Martin Lehoux <martin@lehoux.net> | 2020-04-05 22:46:01 -0700 |
|---|---|---|
| committer | Martin Lehoux <martin@lehoux.net> | 2020-04-05 22:46:01 -0700 |
| commit | e93eee4bb96bd2d81e422dc9d453da6138fd6ba2 (patch) | |
| tree | 0ef600be27a5bcde32d04283563c7b9fb8dd50d5 /utils.go | |
| parent | 8730659596dbfdb9625c0fc413625b261f7d6d70 (diff) | |
misc - Doc
Diffstat (limited to 'utils.go')
| -rw-r--r-- | utils.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils.go b/utils.go new file mode 100644 index 0000000..ca40e87 --- /dev/null +++ b/utils.go @@ -0,0 +1,9 @@ +package main + +// FMin return mins of floats +func FMin(a float64, b float64) float64 { + if a >= b { + return a + } + return b +} |
