convert float to int



package main
import "fmt"

func main() {
    this := 20
    that := 30.2342

    fmt.Println("There =", this - int(that))
}

No comments:

Post a Comment