Go has integer and floating-point numbers for different kinds of arithmetic.

Numeric Types

numeric_types.go
package main

import "fmt"

func main() {
	var count = 
	var price float64 = 2.5
	total := float64(count) * price

	fmt.Println("count=", count)
	fmt.Println("total=", total)
}
package main

import "fmt"

func main() {
	var count = 
	var price float64 = 2.5
	total := float64(count) * price

	fmt.Println("count=", count)
	fmt.Println("total=", total)
}
package main

import "fmt"

func main() {
	var count = 
	var price float64 = 2.5
	total := float64(count) * price

	fmt.Println("count=", count)
	fmt.Println("total=", total)
}
numeric type Numeric variables can use concrete types such as `int` and `float64`.