summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--csharp.html.markdown6
1 files changed, 5 insertions, 1 deletions
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;