Total .NET Analyzer Rule Documentation |
|
Consider replacing hard-coded literal floats with constants.
Remarks
Consider using a constant or a localized resource instead of a hard-coded literal float. Using literal floats can make your code hard to read, maintain, and update.
Resolution
Whenever possible, you should replace hard-coded literal floats with constants or localized resources.
See Also
Literals
Floating-Point Literals
Constants