CERT.LITERAL.FLT.CONST

Use of literal float constant, use meaningful symbolic constants to represent literal values.

Checker highlights instances of float constants excluding 0.x, 1.x and const/static declarations.

Vulnerability and risk

Use of literal constants can reduce the readability and maintainability of the source code

Prevention

Use named constants to clearly define the meaning of constants