Skip to content

Dword to strf

Type Function: STRING

Input IN DWORD (input value)
N Int (length of the result string)
Output STRING (result STRING)
DWORD_TO_STRF converts a DWORD, Word or byte in a STRING of fixed length. The output string is exactly N digits, with leading zeros inserted or leading digits truncated. The maximum permitted length N is 20 digits.

dword_to_strf

Example:

DWORD_TO_STRF(5123, 6) = '005123'
DWORD_TO_STRF(5123, 3) = '123'