https://pt.stackoverflow.com/q/90782/101

CSharp · Console

/Program.cs

using static System.Console;
					
public class Program {
	public static void Main() => WriteLine((3.1415.ToString()).Split('.')[1].Length);
}
;