Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

decimal

A number type that stores base-10 digits exactly, used for money.

decimal (System.Decimal) is a 128-bit base-10 floating-point type with 28–29 significant digits; literals take the m suffix (19.99m).

Examples

  • decimal price = 19.99m; needs the m suffix, and 0.1m + 0.2m is exactly 0.3.

Read the full section →