added Decimal type example for C#

This commit is contained in:
Melvyn 2013-09-21 15:05:14 -04:00
parent 7aa69ae3d7
commit fceaa4a7cf

View File

@ -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;