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

Count: 1

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

A floating point value (real or shortreal) is implicitly converted to an integer.

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

Noncompliant code example

function automatic f(real r);
  int i = r;
endfunction

Compliant solution

function automatic f(real r);
  int i = int'(r);
endfunction
``` ## Parameters No parameters. ```{raw} html ```