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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user