Skip to main content

Module convert

Module convert 

Source
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§

BoolToStr
The __bool_to_str node.
BoolToU64
The __bool_to_u64 node.
CeilToU64
Ceiling f64 to u64 (round toward positive infinity).
Discretize
Discretize: bin a continuous f64 into N equal-width buckets.
F32ToF64
The __f32_to_f64 node.
F32ToString
The __f32_to_string node.
F64ToString
The __f64_to_string node.
F64ToU64
Truncate f64 to u64 (floor toward zero). Lossy – requires explicit use.
FloorToU64
The floor_to_u64 node.
FormatF64
Format an f64 with controlled decimal precision.
FormatU64
Format a u64 as a string with a specific radix (2, 8, 10, 16).
I32ToF64
The __i32_to_f64 node.
I32ToI64
The __i32_to_i64 node.
I32ToString
The __i32_to_string node.
I64ToF64
The __i64_to_f64 node.
I64ToString
The __i64_to_string node.
RoundToU64
The round_to_u64 node.
RoundU64
Round an f64 half-away-from-zero into a u64 (saturating; NaN → 0). Rounding twin of trunc_u64.
StrToBool
The __str_to_bool node.
StrToF64
The __str_to_f64 node.
StrToU64
The __str_to_u64 node.
ToF64
Convert u64 integer value to f64. SRD-80 PR B.14 migration.
TruncU64
Truncate an f64 toward zero into a u64 (saturating; NaN → 0). The explicit escape hatch for writing an f64 expression (e.g. floor_decade(...)) into a u64-typed cell or port.
U32ToF64
The __u32_to_f64 node.
U32ToI64
The __u32_to_i64 node.
U32ToString
The __u32_to_string node.
U32ToU64
The __u32_to_u64 node.
U64ToBool
The __u64_to_bool node.
U64ToF64
The __u64_to_f64 node.
U64ToString
Convert u64 to its decimal string representation.
ZeroPadU64
Zero-pad a u64 to a fixed width string.

Functions§

signatures
Signatures for type conversion nodes.