added floating point handling

This commit is contained in:
Grimsace
2026-02-10 08:28:16 -06:00
parent 78c58393f2
commit 547638f38d
2 changed files with 19 additions and 19 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ package main
import (
"fmt"
"image/color"
"strconv"
"strings"
"fyne.io/fyne/v2"
@@ -71,7 +72,7 @@ func main() {
if err != nil {
outputDisplay.Text = fmt.Sprintf("Error: %v", err)
} else {
outputDisplay.Text = fmt.Sprintf("%d", result)
outputDisplay.Text = strconv.FormatFloat(result, 'g', -1, 64)
}
outputDisplay.Refresh()
})