Skip to content

d20b9a7c 7ea2 359d 880b 668ebe976d9b

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

CapacityEntity.GetFormatter Method (CultureInfo, Int32)

Returns the number formatter based on provided culture.

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

Syntax

C#

private NumberFormatInfo GetFormatter(
	CultureInfo culture,
	int decimals
)

Parameters

 

culture
Type: System.Globalization.CultureInfo
The culture to be used as base. This parameter can be null.
decimals
Type: System.Int32
The number of decimal digits to be used.

Return Value

Type: NumberFormatInfo
The derived and configured number formatter.

Remarks

This method returns the number formatter based on provided culture and adjusts the number of decimal digits accordingly.

See Also

Reference

CapacityEntity Class
GetFormatter Overload
Plexdata.Converters.Entities Namespace
CapacityEntity.GetCulture()
CapacityEntity.GetFormatter(NumberFormatInfo, Int32)

Clone this wiki locally