kopia lustrzana https://github.com/ukhas/habitat-cpp-connector
Merge 6cfb811b07
into 383f1e882b
commit
d348f8a744
|
@ -386,7 +386,7 @@ static void numeric_scale(Json::Value &data, const Json::Value &config)
|
||||||
if (value != 0)
|
if (value != 0)
|
||||||
{
|
{
|
||||||
int position = round_i - int(ceil(log10(fabs(value))));
|
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;
|
value = round(value * m) / m;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue