Skip to content

9326b668 1445 206b 50ca f2ee4fbbeb1a

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

CapacityFormatter.GetDecimals Method

Extracts the decimal digits from provided format string.

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

Syntax

C#

private int GetDecimals(
	string format
)

Parameters

 

format
Type: System.String
The format string to extract the decimal digits from.

Return Value

Type: Int32
The number of decimal digits or zero.

Remarks

This method extracts the decimal digits from provided format string by stripping out all non-digit-characters. This actually has the effect that something like "1m2b" would become "12".

See Also

Reference

CapacityFormatter Class
Plexdata.Formatters Namespace

Clone this wiki locally