From 5f74612d22e2ecdc2f9574b5803e9ff07f6b43d3 Mon Sep 17 00:00:00 2001 From: wxsm Date: Fri, 18 Aug 2023 11:43:11 +0800 Subject: [PATCH] fix: add uint 8 int floaty func --- math.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/math.go b/math.go index 7ffa8eb..8cb3263 100644 --- a/math.go +++ b/math.go @@ -23,6 +23,8 @@ func floaty(a any) float64 { return float64(t) case uint: return float64(t) + case uint8: + return float64(t) case uint16: return float64(t) case uint32: