Search…
V by Example
en
examples
section_3
section_1
Primitives
Keywords
Variables
Formatted Print
Strings
Comments
section_4
section_2
V por exemplos
V mit einem Beispiel
V dengan Contoh
通过例子学V语言
コード例で学ぶV言語
Changelog
Contributing
Documentation Style Guide
Powered By
GitBook
Primitives
V has less primitive types than Go.
Basic Types
bool either
true
or
false
string
integer type
int
float type
float
rune (Unicode string)
Compound Types
arrays
[]
map
{}
struct
Integer
Integer is sub-classified into
signed
and
unsigned
.
signed
means positive or negative and
unsigned
means positive only.
Signed Integer
Type
Size
Range
int8
8 bits
-128 to 27 -1
int16
16 bits
-215 to 215 - 1
int
32 bits
-231 to 231 - 1
int64
64 bits
-263 to 263 - 1
int128
128 bits
-2127 to 2127 - 1
Unsigned Integer
Type
Size
Range
byte
8 bits
0 to 27 -1
u16
16 bits
0 to 215 - 1
u32
32 bits
0 to 231 - 1
u64
64 bits
0 to 263 - 1
u128
128 bits
0 to 2127 - 1
Previous
section_1
Next
Keywords
Last modified
2yr ago
Copy link
Contents
Basic Types
Compound Types
Integer
Signed Integer
Unsigned Integer