-
- Downloads
Added unary plus and fixed scientific notation bug in vtkFunctionParser
This fix is in reference to bug report 0015557. Originally, the expression '3.0e+01' was being evaluated as '3.0e1 + 1 = 31'. It now behaves correctly. Additionally, a unary plus operator has been added to the general case (previously, the inclusion of a unary plus resulted in an error). The test program for vtkFunctionParser has been updated to include unary plus tests and a scientific notation test.
Showing
- Common/Misc/Testing/Cxx/UnitTestFunctionParser.cxx 81 additions, 1 deletionCommon/Misc/Testing/Cxx/UnitTestFunctionParser.cxx
- Common/Misc/vtkFunctionParser.cxx 49 additions, 6 deletionsCommon/Misc/vtkFunctionParser.cxx
- Common/Misc/vtkFunctionParser.h 48 additions, 46 deletionsCommon/Misc/vtkFunctionParser.h
Loading
Please register or sign in to comment