We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TL;DR casadi.DM.set_precision(16)
casadi.DM.set_precision(16)
Example:
>>> import math >>> import casadi >>> A=casadi.DM(math.pi) >>> A DM(3.14159) >>> casadi.DM.set_precision(16) >>> A DM(3.141592653589793)
The help about it says:
set_precision(int precision) Set the 'precision, width & scientific' used in printing and serializing to streams.