1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-20 21:42:14 +02:00

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

@@ -96,7 +96,11 @@ namespace Learning
// Precision: 15-16 digits
double fooDouble = 123.4;
// Bool - true & false
// Decimal - a 128-bits data type, with more precision than other floating-point types,
// suited for financial and monetary calculations
decimal fooDecimal = 150.3m;
// Boolean - true & false
bool fooBoolean = true;
bool barBoolean = false;