using System;
using System.Diagnostics.Contracts;
using Windows.UI.Xaml.Data;
namespace OwlCore.WinUI.Converters.Numerical
{
///
/// A converter that converts a given to a .
///
public class LongToDoubleConverter : IValueConverter
{
///
/// Converts a to a .
///
/// The to convert
/// The converted value.
[Pure]
public static double Convert(long value) => value;
///
public object Convert(object value, Type targetType, object parameter, string language)
{
return Convert((long)value);
}
///
public object ConvertBack(object value, Type targetType, object parameter, string language)
{
return (double)value;
}
}
}