Skip to content

Commit

Permalink
Merge pull request #2 from jamescoxon/master
Browse files Browse the repository at this point in the history
changed int to float for pow() function. This was causing compiler to fa...
  • Loading branch information
danielrichman committed Aug 17, 2013
2 parents 383f1e8 + 6cfb811 commit 8b16d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UKHASExtractor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ static void numeric_scale(Json::Value &data, const Json::Value &config)
if (value != 0)
{
int position = round_i - int(ceil(log10(fabs(value))));
double m = pow(10, position);
double m = pow(10.0, position);
value = round(value * m) / m;
}
}
Expand Down

0 comments on commit 8b16d4d

Please sign in to comment.