$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
【Go言語】リテラル
Search
Tomoki Ota
July 08, 2024
0
130
【Go言語】リテラル
リテラルについてまとめました。
現在、数値リテラルのみ書いてます。後日更新予定です。
【Qiita】
【Go言語】n進数
Tomoki Ota
July 08, 2024
Tweet
Share
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
100
アーキテクチャとビジネスロジック
tomo1227
0
100
【Go言語】テスト
tomo1227
0
64
【Go言語】クロージャ
tomo1227
0
280
【Go言語】イテレータ
tomo1227
0
78
【Go言語】エラーハンドリング
tomo1227
0
66
AIに淘汰されないようにするには?
tomo1227
0
69
【Go言語】range
tomo1227
0
76
【Go言語】break
tomo1227
0
68
Featured
See All Featured
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
85
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
120
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
130
Designing Powerful Visuals for Engaging Learning
tmiket
0
180
Automating Front-end Workflow
addyosmani
1371
200k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
65
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
980
New Earth Scene 8
popppiees
0
1.2k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
Become a Pro
speakerdeck
PRO
31
5.7k
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ਐҎ֎Ͱ༻Մೳɻ