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
150
0
Share
【Go言語】リテラル
リテラルについてまとめました。
現在、数値リテラルのみ書いてます。後日更新予定です。
【Qiita】
【Go言語】n進数
Tomoki Ota
July 08, 2024
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
120
アーキテクチャとビジネスロジック
tomo1227
0
120
【Go言語】テスト
tomo1227
0
80
【Go言語】クロージャ
tomo1227
0
310
【Go言語】イテレータ
tomo1227
0
100
【Go言語】エラーハンドリング
tomo1227
0
83
AIに淘汰されないようにするには?
tomo1227
0
82
【Go言語】range
tomo1227
0
92
【Go言語】break
tomo1227
0
82
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Skip the Path - Find Your Career Trail
mkilby
1
94
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
280
Between Models and Reality
mayunak
3
260
Ethics towards AI in product and experience design
skipperchong
2
250
The Curious Case for Waylosing
cassininazir
0
290
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
100
The browser strikes back
jonoalderson
0
880
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.4k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
160
Building AI with AI
inesmontani
PRO
1
860
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ਐҎ֎Ͱ༻Մೳɻ