Menu
Amazon QuickSight
User Guide

intToDecimal Function

intToDecimal converts an integer value to the decimal data type.

Syntax

Copy
intToDecimal(int)

Arguments

int

A field that uses the integer data type, a literal value like 14, or a call to another function that outputs an integer.

Return Type

Decimal

Example

The following example converts an integer field to a decimal.

Copy
intToDecimal(transaction_count)

For the field values:

Copy
20 892 57

The following values are returned:

Copy
20.0 892.0 58.0