Expand description
Type conversion nodes.
Two categories:
- Edge adapters (prefixed
__): auto-inserted by the assembly phase for common lossless coercions. Users rarely reference these. - Explicit conversions: user-placed nodes for lossy, formatted, or parameterized conversions. These require deliberate intent.
Structs§
- Bool
ToStr - The
__bool_to_strnode. - Bool
ToU64 - The
__bool_to_u64node. - Ceil
ToU64 - Ceiling f64 to u64 (round toward positive infinity).
- Discretize
- Discretize: bin a continuous f64 into N equal-width buckets.
- F32To
F64 - The
__f32_to_f64node. - F32To
String - The
__f32_to_stringnode. - F64To
String - The
__f64_to_stringnode. - F64To
U64 - Truncate f64 to u64 (floor toward zero). Lossy – requires explicit use.
- Floor
ToU64 - The
floor_to_u64node. - Format
F64 - Format an f64 with controlled decimal precision.
- Format
U64 - Format a u64 as a string with a specific radix (2, 8, 10, 16).
- I32To
F64 - The
__i32_to_f64node. - I32To
I64 - The
__i32_to_i64node. - I32To
String - The
__i32_to_stringnode. - I64To
F64 - The
__i64_to_f64node. - I64To
String - The
__i64_to_stringnode. - Round
ToU64 - The
round_to_u64node. - Round
U64 - Round an
f64half-away-from-zero into au64(saturating; NaN → 0). Rounding twin oftrunc_u64. - StrTo
Bool - The
__str_to_boolnode. - StrTo
F64 - The
__str_to_f64node. - StrTo
U64 - The
__str_to_u64node. - ToF64
- Convert u64 integer value to f64. SRD-80 PR B.14 migration.
- Trunc
U64 - Truncate an
f64toward zero into au64(saturating; NaN → 0). The explicit escape hatch for writing an f64 expression (e.g.floor_decade(...)) into a u64-typed cell or port. - U32To
F64 - The
__u32_to_f64node. - U32To
I64 - The
__u32_to_i64node. - U32To
String - The
__u32_to_stringnode. - U32To
U64 - The
__u32_to_u64node. - U64To
Bool - The
__u64_to_boolnode. - U64To
F64 - The
__u64_to_f64node. - U64To
String - Convert u64 to its decimal string representation.
- Zero
PadU64 - Zero-pad a u64 to a fixed width string.
Functions§
- signatures
- Signatures for type conversion nodes.