Tag Archives: number to string

Display time as hh:mm:ss

For a shorter display when hours [or hh:mm] are not required, set the ‘short’ parameter to 1. To display hh:mm:ss without milliseconds, set the second parameter [places] to 0. The ’round’ parameter can be set to round up, round down or round to the closest whole number of seconds. For full details of all options, … Continue reading Display time as hh:mm:ss

Converting numbers to strings and strings to lists

A couple of simple but useful functions. Hopefully this will save someone several hours of scouring Google. To test the code, copy and paste it into the Nyquist Prompt effect and press the DEBUG button to see the output. [cc lang=”lisp”] ; function to convert a number to a string (defun number-to-string (number) (format nil … Continue reading Converting numbers to strings and strings to lists