Q:

How to convert to float if there are tons of lines?

I've got decompiled source codes, they got simple errors like below:
this.SubReport.Top = 77.0 / 16.0;

Error 18  Cannot implicitly convert type 'double' to 'float'. An
  explicit conversion exists (are you missing a
  cast?)    

The solution is simple:
this.SubReport.Top = (float)(77.0 / 16.0);
// or 
this.SubReport.Top = 77.0f / 16.0f;

However there are tons of lines. What is the easiest way to clear these errors except replacing text? Because that's why I'm asking the question, I don't want to use keyboard & replace every single error, there are 1000+ lines. Doubleclicking the error & surrounding the numbers with (float) is my last resort.

A:

You can use Find & Replace with RegEx options
Example:

Input: this.SubReport.Top = 77.0 / 16.0;
Output: this.SubReport.Top = (float)(77.0 / 16.0);

Edit:
Also you could use groups to add the float f to the values other than casting

Input: this.SubReport.Top = 77.0 / 16.0;
Output: this.SubReport.Top = 77.0f / 16.0f;

