AmountToString(String) Method

Returns a String that represents this Amount.

Definition

Namespace: DevCase.Core.Math.Science
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public string ToString(
	string format
)

Parameters

format  String
The format to use. -or- A null reference (Nothing in Visual Basic) to use the default format defined.

Return Value

String
A String that represents this instance.

Remarks

Valid format strings are 'GG', 'GN', 'GS', 'NG', 'NN' or 'NS', where the first letter represents the value formatting (General, Numeric), and the second letter represents the unit formatting (General, Name, Symbol); or a custom number format with 'UG', 'UN' or 'US' (UnitGeneral, UnitName or UnitSymbol) representing the unit (i.e. "#,##0.00 UL").

The format string can also contains a '|' followed by a unit to convert to.

See Also