Skip to main content

asMilliseconds

Converts a duration from seconds to milliseconds.

Parameters

  • DURATION (number)

    The number of seconds to convert.

Examples

ATL in Script

Result

[[asMilliseconds(1)]]

1,000

[[asMilliseconds(0.00125)]]

1.25

To reduce the result to its integer part, use truncate.

ATL in Script

Result

[[asMilliseconds(0.00125)]]

1.25

[[truncate(asMilliseconds(0.00125))]]

1