Lemonergy · Studio block
Inherited numeric conversion
Converts a signal to the numeric element type of a connected reference signal.
- Implementation ID
type-inherit- Reviewed
- 2026-10-27
Behavior
The connected reference determines the destination numeric type. Its numerical value does not affect the conversion.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
in0 | input | 1 | Input 1; real signal. |
in1 | input | 1 | Input 2; i32 signal. |
out0 | output | 1 | Output 1; i32 signal. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
input quantityinput.quantity | 1 | dimensionless | Explicit input quantity in the worked model. |
input shapeinput.shape | 1 | [] | Explicit input shape in the worked model. |
input element Typeinput.elementType | 1 | real | Explicit input elementType in the worked model. |
reference quantityreference.quantity | 1 | dimensionless | Explicit reference quantity in the worked model. |
reference shapereference.shape | 1 | [] | Explicit reference shape in the worked model. |
reference element Typereference.elementType | 1 | i32 | Explicit reference elementType in the worked model. |
Equations and rules
output type = reference typeinteger output = saturate(truncate(input))
Worked example
Inherited numeric conversion — executable model
Input1.9 with an integer reference7 becomes1. Changing only the reference value to200 still produces1.
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
ResultResult | 0.2 | 1 | 1 | 1e-09 |
Use in a workflow
Inherited numeric conversion — executable model
Converts a signal to the numeric element type of a connected reference signal.
- Inherited numeric conversion: The connected reference determines the destination numeric type. Its numerical value does not affect the conversion.
- Use the block reference for settings and connections.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- Real, Boolean, signed32 and unsigned32 types are supported. Complex, scaled and enumeration references are excluded.
Reference basis
This compiler and software type contract is defined by the documented behavior and executable example; no external research result or full external API parity is claimed.
Implementation sources
This reference follows the public interface and locally verified numerical checks for an upcoming release.
Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27
docs/glossary/native-block-verification.json
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)