Quick actions

cmd+k|ctrl+k

Navigation

Languages

Basic types / Floating-point numbers / Essential Go

Snippet info

Language

Go

Visibility

public

Author

kkowalczyk

Created

2019-03-26T10:11:45Z

Updated

2019-03-26T10:11:45Z

package main

import "fmt"

func main() {
	var f64 float64 = 1.54
	s := fmt.Sprintf("%f", f64)
	fmt.Printf("f is: '%s'\n", s)
}
INFO