-
Notifications
You must be signed in to change notification settings - Fork 0
9326b668 1445 206b 50ca f2ee4fbbeb1a
Axel Kesseler edited this page Oct 3, 2019
·
2 revisions
Extracts the decimal digits from provided format string.
Namespace: Plexdata.Formatters
Assembly: Plexdata.CapacityConverter (in Plexdata.CapacityConverter.dll) Version: 1.0.1
C#
private int GetDecimals(
string format
)
- format
- Type: System.String
The format string to extract the decimal digits from.
Type: Int32
The number of decimal digits or zero
.
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".
Plexdata Capacity Converter