Which data type in Go is used to represent decimal numbers with floating-point precision?

  • decimal
  • float
  • float32
  • float64
In Go, the float64 data type is used to represent decimal numbers with floating-point precision. It offers a wider range and higher precision compared to float32. The float32 type is also available but is typically used when memory optimization is a concern.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *