Compare commits

...

2 Commits

Author SHA1 Message Date
Sasha Koshka 2c2fd8f3f9 oopsie hehe 2022-11-22 13:13:59 -05:00
Sasha Koshka 2da9943ea3 Downgrade to go 1.18 2022-11-22 13:12:16 -05:00
2 changed files with 7 additions and 2 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module git.tebibyte.media/sashakoshka/mathpan
go 1.19
go 1.18
require git.tebibyte.media/sashakoshka/stone v0.0.0-20221122052135-ae514f5ae2db

View File

@ -418,7 +418,7 @@ func (operation *Operation) Solution () (solution int64, err error) {
return
}
func (operation *Operation) InexactSolution (solution float64, err error) {
func (operation *Operation) InexactSolution () (solution float64, err error) {
var intSolution int64
intSolution, err = operation.Solution()
solution = float64(intSolution)
@ -529,3 +529,8 @@ func (literal *IntegerLiteral) Solution () (solution int64, err error) {
solution = literal.value
return
}
func (literal *IntegerLiteral) InexactSolution () (solution float64, err error) {
solution = float64(literal.value)
return
}