toDecimal
Last update: June 2, 2021
- Topics:
- Journeys
CREATED FOR:
- Experienced
- Developer
Converts an argument value into a decimal value, depending on its type.
Category
Conversion
Function syntax
toDecimal(<parameter>)
Parameters
Parameter | Description |
---|---|
string | converts the string value as a decimal |
dateTime | converts the date as the number of milliseconds (epoch milliseconds) |
boolean | converts the boolean value as 1 if true, 0 if false |
integer | converts to a decimal (example.: 1 becomes 1.0) |
Signatures and returned types
toDecimal(<integer>)
toDecimal(<decimal>)
toDecimal(<string>)
toDecimal(<boolean>)
Return a decimal.
Examples
toDecimal("4.0")
Returns 4.0.
Previous pagetoDateTimeOnly
Next pagetoDuration
Journey Orchestration
- Product documentation
- What’s new
- Starting with Journey Orchestration
- Configuring an event
- Configuring a data source
- Configuring an action
- Using segments
- Building a journey
- Build expressions
- Building your reports
- Integrating with Intelligent Services
- Use cases
- Working with APIs