This fixes a big problem, when calculating times based on Capacity Availability Document values.
The method CDM::calculateTime(string timeString, double minsToAdd) expects value minsToAdd as double - an hour-rate given as minute separation, but it will always receive a rounded integer written as a double.
26 is the hour-rate of inbound-flights to London-Gatwick (EGKK). That should be one aircraft every 2.3 minutes. Instead, due to roundings in these calculations, the system calculates with the value of one aircraft every 2.0 minutes. Meaning 4 more, than actually possible (26 v 30).
This fixes a big problem, when calculating times based on Capacity Availability Document values.
The method
CDM::calculateTime(string timeString, double minsToAdd)
expects value minsToAdd as double - an hour-rate given as minute separation, but it will always receive a rounded integer written as a double.Example:
26 is the hour-rate of inbound-flights to London-Gatwick (EGKK). That should be one aircraft every 2.3 minutes. Instead, due to roundings in these calculations, the system calculates with the value of one aircraft every 2.0 minutes. Meaning 4 more, than actually possible (26 v 30).
See: Microsoft - lnt-integer-float-division