golang cast
package main
import (
"fmt"
)
func main() {
// Step 1: Declare a variable of type float64
var myFloat float64 = 42.5
// Step 2: Convert the float64 variable to an int
myInt := int(myFloat)
// Step 3: Display the original float64 value
fmt.Println("Original float64 value:", myFloat)
// Step 4: Display the converted int value
fmt.Println("Converted int value:", myInt)
}