Skip to content
Snippets Groups Projects
Commit fc746602 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Fixing double truncation

parent e45c3f49
No related branches found
No related tags found
No related merge requests found
......@@ -88,12 +88,7 @@ public:
* m_IlluminationCorrectionCoefficient
/ m_SolarIllumination;
// Set a 1e-3 precision
itk::OStringStream oss;
oss.str("");
oss << std::fixed << std::setprecision(3);
oss<<temp;
outPixel = static_cast<TOutput>( atof(oss.str().c_str()) );
outPixel = static_cast<TOutput>( vcl_floor(temp*1000.)/1000.);
return outPixel;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment