|
@@ -65,31 +65,31 @@ public class WindspeedforecastContrast implements Serializable {
|
|
|
|
|
|
public String getActualpowerRate() {
|
|
|
if (actualpowertq == null || actualpower == null || actualpower.equals(0.0f)) return null;
|
|
|
- return String.format("%.2f", actualpowertq / actualpower) + "%";
|
|
|
+ return String.format("%.2f", actualpower / actualpowertq * 100) + "%";
|
|
|
}
|
|
|
|
|
|
public String getForecastpowerRate() {
|
|
|
if (forecastpowertq == null || forecastpower == null || forecastpower.equals(0.0f)) return null;
|
|
|
- return String.format("%.2f", forecastpowertq / forecastpower) + "%";
|
|
|
+ return String.format("%.2f", forecastpower / forecastpowertq * 100) + "%";
|
|
|
}
|
|
|
|
|
|
public String getForecastpowerspRate() {
|
|
|
if (forecastpowersptq == null || forecastpowersp == null || forecastpowersp.equals(0.0f)) return null;
|
|
|
- return String.format("%.2f", forecastpowersptq / forecastpowersp) + "%";
|
|
|
+ return String.format("%.2f", forecastpowersp / forecastpowersptq * 100) + "%";
|
|
|
}
|
|
|
|
|
|
public String getActualwindspeedRate() {
|
|
|
if (actualwindspeedtq == null || actualwindspeed == null || actualwindspeed.equals(0.0f)) return null;
|
|
|
- return String.format("%.2f", actualwindspeedtq / actualwindspeed) + "%";
|
|
|
+ return String.format("%.2f", actualwindspeed / actualwindspeedtq * 100) + "%";
|
|
|
}
|
|
|
|
|
|
public String getForecastwindspeedRate() {
|
|
|
if (forecastwindspeedtq == null || forecastwindspeed == null || forecastwindspeed.equals(0.0f)) return null;
|
|
|
- return String.format("%.2f", forecastwindspeedtq / forecastwindspeed) + "%";
|
|
|
+ return String.format("%.2f", forecastwindspeed / forecastwindspeedtq * 100) + "%";
|
|
|
}
|
|
|
|
|
|
public String getForecastwindspeedspRate() {
|
|
|
if (forecastwindspeedsptq == null || forecastwindspeedsp == null || forecastwindspeedsp.equals(0.0f)) return null;
|
|
|
- return String.format("%.2f", forecastwindspeedsptq / forecastwindspeedsp) + "%";
|
|
|
+ return String.format("%.2f", forecastwindspeedsp / forecastwindspeedsptq * 100) + "%";
|
|
|
}
|
|
|
}
|