Returns a number with its value represented by var. :param var: Variable that may represent a number. :type var: str, sympy object, int, float :return: number :rtype: float, int
(var)
| 546 | return var |
| 547 | |
| 548 | def str2number(var): |
| 549 | """ |
| 550 | Returns a number with its value represented by var. |
| 551 | |
| 552 | :param var: Variable that may represent a number. |
| 553 | :type var: str, sympy object, int, float |
| 554 | |
| 555 | :return: number |
| 556 | :rtype: float, int |
| 557 | """ |
| 558 | return eval(_replaceScaleFactors(str(var))) |
| 559 | |
| 560 | def _checkNumeric(exprList): |
| 561 | """ |
nothing calls this directly
no test coverage detected