---
schema_version: "1"
id: d1fdf3ea0c327b98aca71ba8381bb8870fdf2c1eb31206254ad281d2c5bcfd2c
title: Coercions Types (dw::util::Coercions)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.4/dw-coercions-types.md
canonical_url: https://docs.mulesoft.com/dataweave/2.4/dw-coercions-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ce1e1a979b5543f220245093b4bfaa2470dafb1607db597f74ee8e9f6d6b526f
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
---
product: DataWeave
version: 2.4
---

# Coercions Types (dw::util::Coercions)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Type</th><th>Definition</th><th>Description</th></tr></thead><tbody><tr><td><p>MillisOrSecs</p></td><td><div><div><p><code>type MillisOrSecs = "milliseconds" | "seconds"</code></p></div></div></td><td><div><div><p>Type used for setting units to <code>"milliseconds"</code> or <code>"seconds"</code>.</p></div></div></td></tr><tr><td><p>PeriodUnits</p></td><td><div><div><p><code>type PeriodUnits = "hours" | "minutes" | "seconds" | "milliseconds" | "nanos"</code></p></div></div></td><td><div><div><p>Type used for setting units of a <code>Period</code> value to <code>"hours"</code>, <code>"minutes"</code>, <code>"seconds"</code>, <code>"milliseconds"</code>, or <code>"nanos"</code>.</p></div></div></td></tr><tr><td><p>RoundingMode</p></td><td><div><div><p><code>type RoundingMode = "UP" | "DOWN" | "CEILING" | "FLOOR" | "HALF_UP" | "HALF_DOWN" | "HALF_EVEN"</code></p></div></div></td><td><div><div><p>Type used when rounding decimal values up or down.</p></div></div></td></tr></tbody></table>
