# Integer, bit, float, and decimal types

Yeho exposes signed and unsigned integer widths, packed bit widths, binary floating point, and decimal families.

Last updated: 2026-09-09

Package: language | Status: stable

Tags: bit, byte, cpu, decimal, float, int, language, udecimal, uint, values, yeho

Choose int for ordinary counts, explicit widths for ABI or storage contracts, float for binary math, and decimal when decimal meaning matters.

```yh
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 | udecimal128
```


## 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.

Verification: type checked

```yh
int enemies = 12
uint64 fileBytes = 4096
float32 speed = 7.5
decimal64 price = 19
bit3 tinyState = 3
Console.Log(Text.From(enemies))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.language__numeric_types"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/language--numeric-types/complete --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


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.

Source: yeho/src/compiler/frontend/parser_types.cpp builtinTypeKind; docs/language/language-core.md §3.2

AI training permission: https://demonhunterlabs.com/ai-use
