DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


Decimal

Declaration: Decimal(x, dp: integer): string;
Converts the integer number x to an ASCII string which is the decimal representation of that number but the leading spaces replaced by zeros. The number is written with a variable number of places, which can be defined by the parameter dp (1..255). A negative number will be displayed with a leading '-' character, thus increasing the number characters output by one.

Hint: If the value of the parameter dp is less than one the value is automatically restricted to 1. If dp does not suffice to display the decimal representation, the resulting string is truncated.