int() Function

Function

int( number )

Rounds the specified number down to the nearest integer.

Parameters

Keyword Type Description

number

Decimal

The number that will be rounded.

Returns

Integer

Examples

You can experiment with this function in the test box below.

Test Input

int(31.5) returns 31

Open in Github Built: Mon, Nov 29, 2021 (03:22:58 PM)

On This Page

FEEDBACK