Skip to content

Commit fd66b69

Browse files
authored
Merge pull request #173 from GarwelGarwel/dev
v1.6.8
2 parents f619f76 + 4d84e0e commit fd66b69

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Core.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,10 @@ public static string PrefixFormat(this double value, int digits = 3, bool mandat
377377
double v = Math.Abs(value);
378378
if (v < 0.5)
379379
return "0";
380-
if (v < 1000)
381-
return mandatorySign ? value.SignValue($"g{digits}") : value.ToString($"g{digits}");
382380
int n, m = (int)Math.Pow(10, digits);
383-
for (n = -1; v >= m && n < prefixes.Length; n++)
381+
if (v < m)
382+
return mandatorySign ? value.SignValue($"g{digits}") : value.ToString($"g{digits}");
383+
for (n = -1; v >= m && n < 3; n++)
384384
v /= 1000;
385385
return (value < 0 ? "-" : (mandatorySign && value > 0 ? "+" : "")) + v.ToString($"g{digits}") + prefixes[n];
386386
}
0 Bytes
Binary file not shown.

GameData/KerbalHealth/KerbalHealth.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"MAJOR": 1,
88
"MINOR": 6,
9-
"PATCH": 7
9+
"PATCH": 8
1010
},
1111
"KSP_VERSION":
1212
{

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
// You can specify all the values or you can default the Build and Revision Numbers
3434
// by using the '*' as shown below:
3535
// [assembly: AssemblyVersion("1.0.*")]
36-
[assembly: AssemblyVersion("1.6.7")]
37-
[assembly: AssemblyFileVersion("1.6.7")]
36+
[assembly: AssemblyVersion("1.6.8")]
37+
[assembly: AssemblyFileVersion("1.6.8")]
3838
[assembly: NeutralResourcesLanguage("en")]

0 commit comments

Comments
 (0)