From fceaa4a7cf0bcca54306ce6994f273f6b3710290 Mon Sep 17 00:00:00 2001 From: Melvyn Date: Sat, 21 Sep 2013 15:05:14 -0400 Subject: added Decimal type example for C# --- csharp.html.markdown | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'csharp.html.markdown') diff --git a/csharp.html.markdown b/csharp.html.markdown index d3adbd01..bb36d6ce 100644 --- a/csharp.html.markdown +++ b/csharp.html.markdown @@ -95,8 +95,12 @@ namespace Learning // Double - Double-precision 64-bit IEEE 754 Floating Point // Precision: 15-16 digits double fooDouble = 123.4; + + // Decimal - a 128-bits data type, with more precision than other floating-point types, + // suited for financial and monetary calculations + decimal fooDecimal = 150.3m; - // Bool - true & false + // Boolean - true & false bool fooBoolean = true; bool barBoolean = false; -- cgit v1.2.3