Skip to content

20ad3114 8b61 1e85 6324 a43342b54138

Axel Kesseler edited this page Oct 3, 2019 · 1 revision

CapacityEntity.Format Method (Decimal, String, Int32, Boolean, Boolean, NumberFormatInfo)

Formats provided value according to current settings.

Namespace: Plexdata.Converters.Entities
Assembly: Plexdata.CapacityConverter (in Plexdata.CapacityConverter.dll) Version: 1.0.1

Syntax

C#

public string Format(
	decimal value,
	string unit,
	int decimals,
	bool calculate,
	bool intercept,
	NumberFormatInfo formatter
)

Parameters

 

value
Type: System.Decimal
The value to be formatted.
unit
Type: System.String
The unit to be appended.
decimals
Type: System.Int32
The number of decimal digits to be used for calculation.
calculate
Type: System.Boolean
True to force a result calculation, otherwise false.
intercept
Type: System.Boolean
True to force intercept mode, otherwise false.
formatter
Type: System.Globalization.NumberFormatInfo
The number formatter to be used for result formatting.

Return Value

Type: String
The string representation of formatted value.

Remarks

This method formats provided value according to current settings. Keep in mind, resulting number and unit are concatenated by a 'NO-BREAK SPACE' Unicode character (U+00A0).

See Also

Reference

CapacityEntity Class
Format Overload
Plexdata.Converters.Entities Namespace

Clone this wiki locally