using System;
public class Program
{
public static void Main()
int attrval = Convert.ToInt32("000504");
decimal val1 = (attrval / (decimal)100);
string val2 = String.Format("{0:.00}", val1);
Console.WriteLine($"val1 = {val1} val2 = {val2}");
}