-
Notifications
You must be signed in to change notification settings - Fork 0
ab93bc97 f9ca e7ee b1d0 8a2c05cd6010
Converts provided value into its string representation.
Namespace: Plexdata.Converters
Assembly: Plexdata.CapacityConverter (in Plexdata.CapacityConverter.dll) Version: 1.0.1
C#
public static string Convert(
decimal value,
string unit,
int decimals,
bool calculate,
bool intercept,
CultureInfo culture
)
- value
- Type: System.Decimal
The value to be converted. - unit
- Type: System.String
The unit to get a capacity entity for. - decimals
- Type: System.Int32
The number of decimal digits 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. - culture
- Type: System.Globalization.CultureInfo
The culture to be used for conversion.
Type: String
The string representation of converted value.
This method converts provided value into its string representation by finding the best fitting capacity entity and using it to format provided value afterwards.
CapacityConverter Class
Convert Overload
Plexdata.Converters Namespace
CapacityConverter.Find(String)
CapacityConverter.Find(Decimal)
CapacityEntity.Format(Decimal, Boolean, Boolean, CultureInfo)
CapacityEntity.Format(Decimal, Int32, Boolean, Boolean, CultureInfo)
CapacityEntity.Format(Decimal, String, Int32, Boolean, Boolean, CultureInfo)
Plexdata Capacity Converter