The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... |
Home ChemPack CForm TMolForm Methods AsString | |||||||||
See also: MolFormula, ShowAsText | |||||||||
AsString |
|||||||||
The method AsString creates a string representing the current molecular formula (as defined by AtCnt, AtNum, AtWgt, and NumAtoms). The parameter fmt may take either 0 or 1, and determines if the atomic weights are included in the resulting string. The format of the formula string is quite simple: each atom type is represented by Wgt/Sy/Num (if fmt equals 1), or by Sy/Num (if fmt = 0). The individual atoms are separated by spaces.
|