From GridLAB-D Wiki
Jump to: navigation, search

complex_format - Control the formatting of complex numbers


host% gridlabd -D complex_format='%+lg%+lg%c'
host% gridlabd --define complex_format='%+lg%+lg%c'
#set complex_format=%+lg%+lg%c


The complex_format global variable control the formatting used to convert complex numbers between their in-memory and their string representations.


Current the formatting assumes that the conversion is always in the order REAL + IMAGINARY + ANGLE_UNIT. There may be other orders of representation that are desired but they cannot be supported using the current assumptions.


If the formatting of complex numbers is not presented in the order %lg %lg %c with appropriate non-conversion parsing characters interspersed, GridLAB-D may crash without warning or remedy.

See also