changed floating point values in python to display one more decimal place- BMAE script needed to display more (as it worked with 2.41) and it seems resionable to add.

This commit is contained in:
2007-06-19 18:40:17 +00:00
parent 396cef6062
commit d6330266f2

View File

@@ -1461,9 +1461,9 @@ static PyObject *Method_Number( PyObject * self, PyObject * args )
if (!range) range= 1.0f; /* avoid any odd errors */
/* set the precission to display*/
if (range>=100.0f) precission=1.0f;
else if (range>=10.0f) precission=2.0f;
else if (range>=1.0f) precission=3.0f;
if (range>=1000.0f) precission=1.0f;
else if (range>=100.0f) precission=2.0f;
else if (range>=10.0f) precission=3.0f;
else precission=4.0f;
but->type = BFLOAT_TYPE;