Duration datatype into Decimal(milliseconds)

Anyone know how to turn a duration datatype into a decimal datatype. The resulting decimal would be in milliseconds.

For example:

Duration 3 seconds 7 milliseconds would turn into 3007.

Assume I all have is a duration field, the original datetime fields are not stored.

Jason Wilder

decTheDecimal := durTheDuration;