Belajar bahasa pemrograman Go atau Golang
Tipe Data | Nilai Minimum | Nilai Maksimum |
---|---|---|
Signed Integer | ||
int8 | -128 | 127 |
int16 | -32768 | 32767 |
int32 | -2147483648 | 2147483647 |
int64 | -9223372036854775808 | 9223372036854775807 |
Unsigned Integer | ||
uint8 | 0 | 255 |
uint16 | 0 | 65535 |
uint32 | 0 | 4294967295 |
uint64 | 0 | 18446744073709551615 |
Floating Point | ||
float32 | 1.18 * 10^-38 | 3.4 * 10^38 |
float64 | 2.23 * 10^-308 | 1.80x10^308 |
complex32 | complex numbers with float32 real and imaginary parts. | |
complex64 | complex numbers with float64 real and imaginary parts. |