We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 946f37f + f9ff112 commit 4484b73Copy full SHA for 4484b73
1 file changed
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