You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

int()

Usage

int(object)

Description
Tries to convert the given object into an integer value.

Examples

${int('23')}
${int(23.456)}

both result in

23

Search results for "int()"

print()

Prints the string representation of all of the given objects into the page rendering buffer. This method is often used in conjunction with each() to create rendering output for a collection of entities etc. in scripting context.

print(objects...)

int()

Tries to convert the given object into an integer value.

int(object)

rint()

Returns a random integer value between 0 (inclusive) and the bound parameter (exclusive).

rint(bound)