Closed s0kil closed 5 years ago
Spinbox currently does not support float64, only int (this is a platform restriction). You can use a normal text box with package strconv
in the interim.
Thanks for the pointer.
billAmount, _ = strconv.ParseFloat(billAmountEntry.Text(), 64)
You shouldn't be ignoring errors from strconv. Package ui does need better validation primitives, though... (That's in the backlog.)
What is the best way to get a float64 value? I have tried using SpinBox.