The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

AsDecimal Method

Converts the value in a JsonValue to a Decimal data type.

Decimal := JsonValue.AsDecimal


 Type: JsonValue

Return Value

Type: Decimal


If the JsonValue does not contain a number or a string which can be converted without loss of precision to a Decimal, the operation will fail with a run-time error.

See Also

Getting Started with AL
Developing Extensions