Skip to content

e82952b4 3d65 888f 8eca 4e70844d5849

Axel Kesseler edited this page Oct 3, 2019 · 3 revisions

CapacityEntity.Format Method (Decimal, String, Boolean, CultureInfo)

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,
	bool calculate,
	CultureInfo culture
)

Parameters

 

value
Type: System.Decimal
The value to be formatted.
unit
Type: System.String
The unit to be appended.
calculate
Type: System.Boolean
True to force a result calculation, otherwise false.
culture
Type: System.Globalization.CultureInfo
The culture to be used for calculation.

Return Value

Type: String
The string representation of formatted value.

Remarks

This method formats provided value according to current settings.

See Also

Reference

CapacityEntity Class
Format Overload
Plexdata.Converters.Entities Namespace
CapacityEntity.Format(Decimal, String, Int32, Boolean, Boolean, NumberFormatInfo)

Clone this wiki locally