Unit

The unit of a weight's value.

Entries

Link copied to clipboard

Describes a weight in grams.

Link copied to clipboard

Describes a weight in kilograms.

Link copied to clipboard

Describes a weight in ounces.

Link copied to clipboard

Describes a weight in troy ounces.

Link copied to clipboard

Describes a weight in pounds.

Link copied to clipboard

Describes a weight in short tons. (Commonly used in the US.)

Link copied to clipboard

Describes a weight in metric tons. (Commonly used in Europe.)

Link copied to clipboard

Describes a weight in long tons. (Commonly used in the UK.)

Inherited properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.