PRF013
Unneeded type conversion round-trip
Object Pascal — Delphi & Free Pascal
Info
Performance
Converting a value to a string and back wastes CPU cycles with no net effect
converting a value to a string and back wastes CPU cycles with no net effect.
Why this severity
converting a value to a string and back wastes CPU cycles with no net effect.
Known false positives
round-trips used intentionally for formatting normalization.
Remediation example
Value := OriginalValue; // instead of: Value := StrToInt(IntToStr(OriginalValue));
Related Performance rules