Skip to content

Commit

Permalink
Merge pull request #173 from GarwelGarwel/dev
Browse files Browse the repository at this point in the history
v1.6.8
  • Loading branch information
GarwelGarwel committed Jan 22, 2024
2 parents f619f76 + 4d84e0e commit fd66b69
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ public static string PrefixFormat(this double value, int digits = 3, bool mandat
double v = Math.Abs(value);
if (v < 0.5)
return "0";
if (v < 1000)
return mandatorySign ? value.SignValue($"g{digits}") : value.ToString($"g{digits}");
int n, m = (int)Math.Pow(10, digits);
for (n = -1; v >= m && n < prefixes.Length; n++)
if (v < m)
return mandatorySign ? value.SignValue($"g{digits}") : value.ToString($"g{digits}");
for (n = -1; v >= m && n < 3; n++)
v /= 1000;
return (value < 0 ? "-" : (mandatorySign && value > 0 ? "+" : "")) + v.ToString($"g{digits}") + prefixes[n];
}
Expand Down
Binary file modified GameData/KerbalHealth/KerbalHealth.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion GameData/KerbalHealth/KerbalHealth.version
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"MAJOR": 1,
"MINOR": 6,
"PATCH": 7
"PATCH": 8
},
"KSP_VERSION":
{
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.6.7")]
[assembly: AssemblyFileVersion("1.6.7")]
[assembly: AssemblyVersion("1.6.8")]
[assembly: AssemblyFileVersion("1.6.8")]
[assembly: NeutralResourcesLanguage("en")]

0 comments on commit fd66b69

Please sign in to comment.