I have a simple Gain block attached to an input port. I notice that the data type of the Gain parameter is set to "inherit via internal rule"
When I pass an integer to a Gain block with a Gain value of '1.1' Simulink generates the following warning:
Warning: Parameter precision loss occurred for 'Gain'. The parameter's value cannot be represented exactly using the run-time data type. A small quantization error has occurred. You can control this diagnostic on the Diagnostics pane of the Configuration Parameters dialog. This originated from 'untitled/Gain'.
Thus I would like to know how the data type of the Gain parameter is determined.
Best Answer