Advertisement
Koepnick

variable casting

Jan 15th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.12 KB | None | 0 0
  1. i := 3
  2. f := float64(i)
  3. u := uint32(f)
  4.  
  5. i = i / 2       // 1
  6. f = f / 1.4 // 2.142857142857143
  7. u = u - 10      // 4294967289
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement