OpenTTD Source: Units Struct Reference

OpenTTD Source 15.0-beta1

Data Fields
Units Struct Reference

Information about a specific unit system. More...

## Data Fields
UnitConversion | c
| Conversion.
StringID | s
| String for the unit.
unsigned int | decimal_places
| Number of decimal places embedded in the value. For example, 1 if the value is in tenths, and 3 if the value is in thousandths.

## Detailed Description

Information about a specific unit system.

Definition at line 757 of file strings.cpp.

## Field Documentation

## ◆ c

UnitConversion Units::c

Conversion.

Definition at line 758 of file strings.cpp.

Referenced by ConvertDisplaySpeedToKmhishSpeed(), ConvertDisplaySpeedToSpeed(), ConvertKmhishSpeedToDisplaySpeed(), and ConvertSpeedToDisplaySpeed().

## ◆ decimal_places

unsigned int Units::decimal_places

Number of decimal places embedded in the value. For example, 1 if the value is in tenths, and 3 if the value is in thousandths.

Definition at line 760 of file strings.cpp.

## ◆ s

StringID Units::s

String for the unit.

Definition at line 759 of file strings.cpp.

The documentation for this struct was generated from the following file:

- src/strings.cpp