First of all i'm new to programming, and i have problem. I'm trying to take 1/4 from a float but it doesn't work (it has to be a float this is just an easier example).
package main
import (
"fmt"
)
var (
a float64
)
func main() {
fmt.Println("digit")
fmt.Scan(&a)
s := a * (1 / 4)
fmt.Println(s)
}
If the input is 100 it returns 0.