You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.go 214B

3 weeks ago
123456789101112131415161718192021
  1. package main
  2. import (
  3. "fmt"
  4. "math"
  5. )
  6. const s string = "constant"
  7. func consts() {
  8. fmt.Println(s)
  9. const n = 500000000
  10. const d = 3e20 / n
  11. fmt.Println(d)
  12. fmt.Println(int64(d))
  13. fmt.Println(math.Sin(n))
  14. }