Unit


Description:

[ CCode ( has_construct_function = false ) ]
public Unit (string name, double factor, int digits, string symbol, string abbreviation)

Creates a new unit.

This procedure creates a new unit and returns it. Note that the new unit will have it's deletion flag set to TRUE, so you will have to set it to FALSE with set_deletion_flag to make it persistent.

Parameters:

name

The new unit's name.

factor

The new unit's factor.

digits

The new unit's digits.

symbol

The new unit's symbol.

abbreviation

The new unit's abbreviation.

Returns:

The new unit.