Skip to content

Commit 605ab13

Browse files
Merge pull request #1594 from Humanizr/alert-autofix-24
2 parents 019fb43 + a78ea25 commit 605ab13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Humanizer/MetricNumeralExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static double BuildNumber(string input, char last) =>
223223
/// <returns>A number build from a Metric representation</returns>
224224
static double BuildMetricNumber(string input, char last)
225225
{
226-
double getExponent(List<char> symbols) => (symbols.IndexOf(last) + 1) * 3;
226+
double getExponent(List<char> symbols) => (symbols.IndexOf(last) + 1) * 3.0;
227227
var number = double.Parse(input.Remove(input.Length - 1));
228228
var exponent = Math.Pow(10, Symbols[0]
229229
.Contains(last)

0 commit comments

Comments
 (0)