Skip to content

Glossary: C# Basics

Currency format (:C)

Also written: :C, format specifier

A format specifier written after a colon in braces. `:C` shows money with a currency sign, thousands separators and two decimals, following the computer's region setting. Others are `:F2` (two decimals) and `:N0` (thousands separators).

Where the book teaches it

Related terms

String interpolationWidth