Source code

CERNY.util

Some general purpose utility functions.

Functions

indent

Create an indentation string, a line feed followed by n spaces, where n = indentation.

indentation : the number of spaces to append to the line feed
return : a string
fillNumber

Return (at least) two digit number as a String. If _number smaller than 10 return "0" + _number.

number : the number to fill
return : the filled number
cutNumber

Return the last n digits from the decimal String representation of number.

number : the number to get the digits from
n : how many digits to get
return : the last n digits

History

2006-11-12 : Created.

API Documentation for version

1.0

Scripts

Scripts

util

1.0

Functions