diff options
author | Melvyn <melvyn.laily@gmail.com> | 2013-09-21 15:05:14 -0400 |
---|---|---|
committer | Melvyn <melvyn.laily@gmail.com> | 2013-09-21 15:05:14 -0400 |
commit | fceaa4a7cf0bcca54306ce6994f273f6b3710290 (patch) | |
tree | e78a86cd12df6b393db9566e60948d176738b5c6 /csharp.html.markdown | |
parent | 7aa69ae3d7e616e1664c5f11d264d827e7bc5fce (diff) |
added Decimal type example for C#
Diffstat (limited to 'csharp.html.markdown')
-rw-r--r-- | csharp.html.markdown | 6 |
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; |