Click or drag to resize

SmallNumberType Class

Message formatting class for a numeric value. For the values below 1000 the resulted message is formatted so that it takes 4 digits or less.
Inheritance Hierarchy
SystemObject
  KSPDev.GUIUtils.TypeFormattersSmallNumberType

Namespace:  KSPDev.GUIUtils.TypeFormatters
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
public sealed class SmallNumberType
Request Example View Source

The SmallNumberType type exposes the following members.

Constructors
  NameDescription
Public methodSmallNumberType
Constructs an object from a numeric value.
Top
Methods
  NameDescription
Public methodStatic memberFormat
Formats the value into a human friendly string.
Public methodToString
Returns a string formatted as a human friendly distance specification.
(Overrides ObjectToString.)
Top
Operators
Fields
  NameDescription
Public fieldvalue
A wrapped numeric value.
Top
Remarks

Use it as a generic parameter when creating a LocalizableMessage descendants.

See Also

Reference