Converting float64 to int in Go: how to correctly discard the fractional part?
Hi everyone! I just started learning Go and encountered a problem when converting floating-point numbers to integers. I need to convert a `float64` value to `int`, but I'm not sure how to do it correctly.\n\nFor example, I have this code:\n\n```go\npackage main\n\nimport "fmt"\n\nfunc main() {\n var price float64 = 19.99\n var result int = int(price)\n fmt.Println(result) // Outputs 19\n}\n```\n\nSimple type casting `int(price)` works, but I noticed that it just discards the fractional part (truncates toward zero). What if I need to round to the nearest integer? Or maybe I want to get the ceiling (ceil) or floor?\n\nAlso, I read that Go doesn't have automatic implicit conversion between numeric types. Does this mean I always have to