Basic / Arithmetic Types

Width-Specified Types

Signed Unsigned Float
Int8 UInt8  
Int16 UInt16  
Int32 UInt32 Float32
Int64 UInt64 Float64

Integer

Int is

Simply use Int,

Boolean

It is Bool, not bool nor Boolean.

Byte

Byte is std::byte, i.e. not the same type as UInt8 for parameter overloading. It is used to represent raw memory, for binary buffers, serialization, or low-level I/O.

Floating Point

Float is

With modern processors double precision is very fast. When concerned with memory bandwidth, cache size, and SIMD performance, choose one of the smaller floating-point types like Float32 or (if available) BFloat16, Float16, Float8, maybe even Float4.