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
120
【Go言語】リテラル
リテラルについてまとめました。
現在、数値リテラルのみ書いてます。後日更新予定です。
【Qiita】
【Go言語】n進数
Tomoki Ota
July 08, 2024
Tweet
Share
More Decks by Tomoki Ota
See All by Tomoki Ota
アーキテクチャの価値
tomo1227
0
91
アーキテクチャとビジネスロジック
tomo1227
0
91
【Go言語】テスト
tomo1227
0
52
【Go言語】クロージャ
tomo1227
0
260
【Go言語】イテレータ
tomo1227
0
69
【Go言語】エラーハンドリング
tomo1227
0
58
AIに淘汰されないようにするには?
tomo1227
0
58
【Go言語】range
tomo1227
0
62
【Go言語】break
tomo1227
0
61
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.6k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
GraphQLとの向き合い方2022年版
quramy
49
14k
Git: the NoSQL Database
bkeepers
PRO
431
66k
A Tale of Four Properties
chriscoyier
160
23k
Raft: Consensus for Rubyists
vanstee
139
7.1k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
890
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.5k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
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ਐҎ֎Ͱ༻Մೳɻ