language · language ·
Integer, bit, float, and decimal types
Yeho exposes signed and unsigned integer widths, packed bit widths, binary floating point, and decimal families.
Choose int for ordinary counts, explicit widths for ABI or storage contracts, float for binary math, and decimal when decimal meaning matters.
int8 | int16 | int | int32 | int64 | int128
byte | uint8 | uint16 | uint | uint32 | uint64 | uint128
bit1..bit8 | ubit1..ubit8
float8 | float16 | float | float32 | float64 | float128
decimal8 | decimal16 | decimal | decimal32 | decimal64 | decimal128
udecimal8 | udecimal16 | udecimal | udecimal32 | udecimal64 | udecimal128Status: stable
Complete integer, bit, float, and decimal types example
Choose int for ordinary counts, explicit widths for ABI or storage contracts, float for binary math, and decimal when decimal meaning matters.
cpu · language · type checked
int enemies = 12
uint64 fileBytes = 4096
float32 speed = 7.5
decimal64 price = 19
bit3 tinyState = 3
Console.Log(Text.From(enemies))
project.mech
manifestVersion = "2"
package = "api.example.language__numeric_types"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
Not every width is equally accelerated on every backend.
Overflow and conversion behavior belongs to the type and target contract, not an implicit truthy conversion.
yeho/src/compiler/frontend/parser_types.cpp builtinTypeKind; docs/language/language-core.md §3.2