Hello,
Try this:
void Main()
{
double d = 12345.67;
Console.WriteLine("Reversed: {0}", ReverseNumber(d));
}
double ReverseNumber(double number)
{
return double.Parse(ReverseString(number.ToString()));
}
string ReverseString( string s )
{
char[] charArray = s.ToCharArray();
Array.Reverse( charArray );
return new string( charArray );
}
Cheers,
JAFC