The Target Box UI display is incorrect. Urados is not 2.8 Gm away, it is 280 Gm away. This craft has a Vizzy Flight Program that displays this distance to a target planet, which should work for any planet in the solar system while the craft is in orbit around Droo. It works fine for everything but Urados.
I believe the bug is in ModApi.Math.Units line 75 (GetDistanceString):
public static string GetDistanceString(float distanceInMeters)
{
if (!Units.IsFinite((double) distanceInMeters))
return "N/A";
if (Units.CurrentUnitSystem == Units.UnitSystem.Imperial)
return (distanceInMeters * 3.28084f).ToString("n1") + "ft";
if ((double) distanceInMeters >= 99,999,997,952.0)
return (distanceInMeters / 1E+11f).ToString("n1") + "Gm";
if ((double) distanceInMeters >= 100000000.0)
return (distanceInMeters / 1000000f).ToString("n1") + "Mm";
if ((double) distanceInMeters >= 1000000.0)
return (distanceInMeters / 1000f).ToString("n0") + "km";
return (double) distanceInMeters >= 1000.0 ? (distanceInMeters / 1000f).ToString("n1") + "km" : distanceInMeters.ToString("n1") + "m";
}
To get gigameters I think you want to divide by 1,000,000,000 or 1E+9
not 1E+11
I only wish I could blame it on somebody else, but I'm pretty sure that's my code! Thanks for the bug report!