We will revisit this someday, it works for now

This commit is contained in:
2025-02-03 21:41:25 +00:00
parent 0bb1c4dbb9
commit 88a0251b2d
2 changed files with 11 additions and 10 deletions
+5 -4
View File
@@ -110,11 +110,12 @@ func createStandingsTable(i *goirsdk.IBT) []StandingsLine {
return standings
}
func abs(v float32) float32 {
if v < 0 {
v = v * -1
func abs[V int32 | float32 | int](value V) V {
if value < 0 {
value = value * -1
}
return v
return value
}