Numeral Systems - Binary
package main
import "fmt"
func main() {
fmt.Printf("%d - %b \n", 42, 42)
}
Run{:.button.button--outline-success.button--pill}
Output:
42 - 101010
Program exited.
in above program the annotation verb %b formats a number in binary...
blog.cloudnativefolks.org1 min read