Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
【Go言語】リテラル
Search
Tomoki Ota
July 08, 2024
0
140
【Go言語】リテラル
リテラルについてまとめました。
現在、数値リテラルのみ書いてます。後日更新予定です。
【Qiita】
【Go言語】n進数
Tomoki Ota
July 08, 2024
Tweet
Share
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
120
アーキテクチャとビジネスロジック
tomo1227
0
110
【Go言語】テスト
tomo1227
0
78
【Go言語】クロージャ
tomo1227
0
300
【Go言語】イテレータ
tomo1227
0
99
【Go言語】エラーハンドリング
tomo1227
0
81
AIに淘汰されないようにするには?
tomo1227
0
78
【Go言語】range
tomo1227
0
87
【Go言語】break
tomo1227
0
79
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
190
We Have a Design System, Now What?
morganepeng
55
8k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
110
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.7k
Balancing Empowerment & Direction
lara
5
930
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
69
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
810
Embracing the Ebb and Flow
colly
88
5k
Transcript
Tomoki Ota ʲGoݴޠʳϦςϥϧ
Ϧςϥϧ
2ਐ 8ਐ 16ਐ ෳૉ ΞϯμʔείΞ
͑ 120Ͱͳ͘ɺ116Ͱ͢
ղઆ 0Λ͚ͭΔͱ8ਐʹͳΔɻ 100 + 020 = 100 + 16 =
116
2ਐ 0bɺ0Bͷpre f ixΛ͚ͭΔɻ e.g. 0b1010
2ਐ Ϗοτԋࢉͷྫ
8ਐ 0, 0oͷpre f ixΛ͚ͭΔɻ e.g. 012
8ਐ ϑΝΠϧͷύʔϛογϣͷ༩ͷྫ
16ਐ 0xɺ0Xͷpre f ixΛ͚ͭΔɻ e.g. 0x3F
16ਐ ϙΠϯλ16ਐ
ෳૉ iͷsuf f ixΛ͚ͭΔɻe.g. 3+4i complex128ͱcomplex64ͱͯ͠ એݴ͢Δ͜ͱՄೳɻ
ෳૉ
ΞϯμʔείΞ ࣈΛಡΈ͘͢͢ΔͨΊʹɺ ۠Γจࣈͱͯ͠ _ Λ͑Δɻ e.g. 1ԯ : 100_000_000 10ਐҎ֎Ͱ༻Մೳɻ