# VERILOG2057: Implicit conversion from a floating point value to an narrower floating point value should be reviewed ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
HIGH--Intentionality | Logical10minsynthesis, vscode, simulation, linter
``` ## Description ```{raw} html

Noncompliant code example

function automatic f(real r);
  shortreal s = r;
endfunction

Compliant solution

function automatic f(real r);
  shortreal s = shortreal'(r);
endfunction

A floating point value is implicitly converted to a narrower floating point type.

This is not necessarily wrong but make sure that it is really what was supposed to be implemented. If so, add an explicit cast.

``` ## Parameters No parameters. ```{raw} html ```