Daylight v4.9
Release Date: 1 February 2008

Name

dt_weight - return the atomic weight of an atom

Generic Prototype

dt_weight(dt_Handle) => dt_Integer

C Prototype

#include "dt_smiles.h"

dt_Integer dt_weight(dt_Handle atom)

FORTRAN Prototype

include 'dt_f_smiles.inc'

integer*4 dt_f_weight(atom)

integer*4 atom

Description

Finds the atomic weight for the given atom.

Return Value

Returns the atomic weight of the atom. The weight of an atom will be '0' if the atom is the default isotopic mixture. The weight of an atom will be a positive integer if and only if a non-default isotope is specified for the atom. For all other objects, this property is defined as -1.

Related Topics

dt_addatom(3) dt_setweight(3)