{"id":"language--numeric-types","name":"Integer, bit, float, and decimal types","owner":"yeho","package":"language","kind":"language","signature":"int8 | int16 | int | int32 | int64 | int128\nbyte | uint8 | uint16 | uint | uint32 | uint64 | uint128\nbit1..bit8 | ubit1..ubit8\nfloat8 | float16 | float | float32 | float64 | float128\ndecimal8 | decimal16 | decimal | decimal32 | decimal64 | decimal128\nudecimal8 | udecimal16 | udecimal | udecimal32 | udecimal64 | udecimal128","description":"Yeho exposes signed and unsigned integer widths, packed bit widths, binary floating point, and decimal families.","context":"Choose int for ordinary counts, explicit widths for ABI or storage contracts, float for binary math, and decimal when decimal meaning matters.","parameters":[],"returns":"","members":[],"tags":["bit","byte","cpu","decimal","float","int","language","udecimal","uint","values","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/frontend/parser_types.cpp builtinTypeKind; docs/language/language-core.md §3.2"},"status":"stable","notes":["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."],"examples":[{"id":"complete","title":"Complete integer, bit, float, and decimal types example","description":"Choose int for ordinary counts, explicit widths for ABI or storage contracts, float for binary math, and decimal when decimal meaning matters.","code":"int enemies = 12\nuint64 fileBytes = 4096\nfloat32 speed = 7.5\ndecimal64 price = 19\nbit3 tinyState = 3\nConsole.Log(Text.From(enemies))\n","tags":["cpu","language"],"run":"cpu-oracle","expected":null,"verifyRun":false,"manifest":"manifestVersion = \"2\"\npackage = \"api.example.language__numeric_types\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","verification":"type checked","sha256":"83e7f70e1f61d97001e6708600d48c6d9a7974af76ad1272bfbd40a99ca8f793","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=language--numeric-types","json":"https://demonhunterlabs.com/reference/items/language--numeric-types.json","markdown":"https://demonhunterlabs.com/reference/text/language--numeric-types.md"}
