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

Inherited numeric conversion interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Inherited numeric conversionStudio blockin0in1out0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
in0input1Input 1; real signal.
in1input1Input 2; i32 signal.
out0output1Output 1; i32 signal.

Parameters

Defaults are initial model values. Select values for your own model and operating conditions.

Configuration fields
ParameterUnitDefaultMeaning and limits
input quantity
input.quantity
1dimensionlessExplicit input quantity in the worked model.
input shape
input.shape
1[]Explicit input shape in the worked model.
input element Type
input.elementType
1realExplicit input elementType in the worked model.
reference quantity
reference.quantity
1dimensionlessExplicit reference quantity in the worked model.
reference shape
reference.shape
1[]Explicit reference shape in the worked model.
reference element Type
reference.elementType
1i32Explicit reference elementType in the worked model.

Equations and rules

  • output type = reference type
  • integer 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 →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Result
Result
0.2111e-09

Use in a workflow

Inherited numeric conversion — executable model

Converts a signal to the numeric element type of a connected reference signal.

  1. 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.
Open Studio example after release

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)