materials_compendium.utils.ElementInfo.get_weight_fraction_whole

ElementInfo.get_weight_fraction_whole()[source]

Get the whole number weight fraction associated with the element.

Returns:

The whole number weight fraction.

Return type:

float

Example

print(element_info.get_weight_fraction_whole()) # Output: 12.0