add osc double type

This commit is contained in:
2024-10-21 14:29:27 -05:00
parent e8f0fb7d14
commit 5dc08cd907
+7
View File
@@ -71,6 +71,13 @@ func argToTypedArg(rawArg string, oscType string) any {
panic(err)
}
return int64(number)
case "d":
number, err := strconv.ParseFloat(rawArg, 64)
if err != nil {
// ... handle error
panic(err)
}
return float64(number)
default:
fmt.Print("unhandled osc type: ")
fmt.Printf("%s.\n", oscType)