I'm gonna need some clarification on this,
using System;
class test
{
public static void Main()
{
decimal var; //my variable
var = 25.1;
Console.WriteLine("var = {0}", FormatNumber(var, 2));
}
}
should have the output:
var = 25.10
I just generate compiling errors.
|