Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
- {
- if (value == null)
- return "--";
- if (!double.TryParse(value.ToString(), out double doubleValue))
- {
- return "--";
- }
- else
- {
- doubleValue = doubleValue / 1000;
- return Math.Round(doubleValue, 1).ToString() + " Km";
- }
- }
Add Comment
Please, Sign In to add comment