math.Float64bits() Function in Golang With Examples
Go language provides inbuilt support for basic constants and mathematical functions to perform operations on the numbers with the help of the math package. This package provides Float64bits() function which returns the IEEE 754 binary representation of a with the sign bit of a and the result in the same bit position. So, you need to add a math package in your program with the help of the import keyword to access the Float64bits() function.
func Float64bits(a float64) uint64
Result 1: 4611686018427387904 Result 2: 4607182418800017408 Result 3: 0 Result 4: 4612361558371493478
Result 1: 4613937818241073152 Result 2: 4632233691727265792 Sum of Result 1 and Result 2: 9246171509968338944