aboutsummaryrefslogtreecommitdiff
path: root/content/basics/numeric-constants.go
diff options
context:
space:
mode:
Diffstat (limited to 'content/basics/numeric-constants.go')
-rw-r--r--content/basics/numeric-constants.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/content/basics/numeric-constants.go b/content/basics/numeric-constants.go
index 59784b5..9e089c3 100644
--- a/content/basics/numeric-constants.go
+++ b/content/basics/numeric-constants.go
@@ -5,10 +5,11 @@ package main
import "fmt"
const (
- // Create a huge number by shifting a 1 bit left 100 places.
- // In other words, the binary number that is 1 followed by 100 zeroes.
+ // Buat bilangan yang besar dengan men-shift 1 bit ke kiri 100 kali.
+ // Dengan kata lain, bilangan binari 1 diikuti dengan 100 angka nol.
Big = 1 << 100
- // Shift it right again 99 places, so we end up with 1<<1, or 2.
+ // Shift kembali ke kanan sebanyak 99 kali, sehingga akhirnya menjadi
+ // 1<<1, atau 2
Small = Big >> 99
)