>>-C2D(string--+----+--)--------------------------------------->< +-,n-+
0
is returned.
Example 7.15. Builtin function C2D
C2D("09"X) -> 9 C2D("81"X) -> 129 C2D("FF81"X) -> 65409 C2D("") -> 0 C2D("a") -> 97 /* ASCII */
RIGHT(string, n,"00"x)
had been processed. If n is 0
, C2D always returns 0
.
Example 7.16. Builtin function C2D
C2D("81"X,1) -> -127 C2D("81"X,2) -> 129 C2D("FF81"X,2) -> -127 C2D("FF81"X,1) -> -127 C2D("FF7F"X,1) -> 127 C2D("F081"X,2) -> -3967 C2D("F081"X,1) -> -127 C2D("0031"X,0) -> 0