We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7005e4 commit 6129288Copy full SHA for 6129288
1 file changed
src/ObjCryst/ObjCryst/Crystal.cpp
@@ -409,12 +409,12 @@ std::string Crystal::GetFormula() const
409
{
410
if(pos!=velts.begin()) s<<" ";
411
float nb=pos->second;
412
- if((abs(nb)-nb)<0.01) s<<pos->first<<int(round(nb));
+ if(abs(round(nb)-nb)<0.005) s<<pos->first<<int(round(nb));
413
else s<<pos->first<<nb;
414
}
415
return s.str();
416
417
-
+
418
419
REAL Crystal::GetWeight() const
420
0 commit comments