Hi,
I have created a float64 variable and stored the value in it.
Now I tried to print the value but it displays some other value.
package main
import (
"fmt"
)
func main() {
var a float64
a = 9999999999999999999999999999.99
fmt.Printf("%f\n", a)
var b float64
b = 99999999999999999999
fmt.Printf("%f\n", b)
var c float64
c = 9999999999999999999999999
fmt.Printf("%f\n", c)
}
The output of the program is different.
I think I am doing something wrong. Please Guide me on this issue.
Thanks,
Akhil