Internationalization and localization tools


Culture-Sensitive C# Method

using System

public static decimal ToDecimal(bool value);
public static decimal ToDecimal(byte value);
public static decimal ToDecimal(char value);
public static decimal ToDecimal(DateTime value);
public static decimal ToDecimal(decimal value);
public static decimal ToDecimal(double value);
public static decimal ToDecimal(short value);
public static decimal ToDecimal(int value);
public static decimal ToDecimal(long value);
public static decimal ToDecimal(Object value);
public static decimal ToDecimal(sbyte value);
public static decimal ToDecimal(float value);
public static decimal ToDecimal(string value);
public static decimal ToDecimal(ushort value);
public static decimal ToDecimal(uint value);
public static decimal ToDecimal(ulong value);

public static decimal ToDecimal(Object value, IFormatProvider provider);

public static decimal ToDecimal(string value, IFormatProvider provider);

Internationalization (I18n) Method Overview

The ToDecimal method converts the passed in parameter to a Decimal value.

For more information see Microsoft's MSDN online documentation.

I18n Issues

To ensure that culture-sensitive formatting is done properly, call the versions that pass in the Culture (IFormatProvider).

Culture and Number Format Information

 

Lingoport internationalization and localization services and software