link cfunc
September 2, 2012; Gregg M. Townsend
Requires: Dynamic loading
This file is in the public domain.
lgconv(I) converts a large integer into a string using a series of BCD adds. (In contrast, the Icon built-in string() function accomplishes the same conversion using a series of divisions by 10.) lgconv is typically 50% to 75% faster than string() on a Sun or Alpha. For some reason it is as much as 125% SLOWER on a SGI 4/380. lgconv(I) works for all integer values of I. Small integers are simply passed to string() for conversion.