Open Rails

FormatStrings.FormatMass Method

[This is preliminary documentation and subject to change.]

format localized mass string, as displayed in in-game windows.

public static string FormatMass(
   float massKg,
   bool isMetric
);

Parameters

massKg
mass in kg or in Lb
isMetric
use kg if true, Lb if false

See Also

FormatStrings Class | ORTS.Common Namespace