The decimal data type
The decimal
data type represents a 128-bit wide, decimal number.
Literals of the decimal
data type have the same representation as .NET's System.Data.SqlTypes.SqlDecimal
.
decimal(1.0)
, decimal(0.1)
, and decimal(1e5)
are all literals of type decimal
.
There are several special literal forms:
decimal(null)
: This is the null value.