using System;
public class Test
{
public static void Main()
{
decimal a = 9;
decimal b = 1.23456789M;
decimal c = 10.23456789M;
decimal d = c-b;
Console.WriteLine("Values are the same: {0}", a == d);
Console.WriteLine(a.ToString("G"));
Console.WriteLine(d.ToString("G"));
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCWRlY2ltYWwgYSA9IDk7CgkJZGVjaW1hbCBiID0gMS4yMzQ1Njc4OU07CgkJZGVjaW1hbCBjID0gMTAuMjM0NTY3ODlNOwoJCWRlY2ltYWwgZCA9IGMtYjsKCQlDb25zb2xlLldyaXRlTGluZSgiVmFsdWVzIGFyZSB0aGUgc2FtZTogezB9IiwgYSA9PSBkKTsKCQlDb25zb2xlLldyaXRlTGluZShhLlRvU3RyaW5nKCJHIikpOwoJCUNvbnNvbGUuV3JpdGVMaW5lKGQuVG9TdHJpbmcoIkciKSk7Cgl9Cn0=