The decimal data type
This article describes the decimal data type.
The decimal data type represents a 128-bit wide, decimal number.
decimal literals
To specify a decimal literal, use one of the following syntax options:
|Syntax|Description|Example|
|–|–|
|decimal(number)|A decimal number represented by one or more digits, followed by a decimal point, and then one or more digits.|decimal(1.0)|
|decimal(numbereexponent)|A decimal number represented by scientific notation.|decimal(1e5) is equivalent to 100,000|
|decimal(null)|Represents the null value.||
Related content
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.