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

int(31.5) returns 31

Open in Github Built: Fri, Jun 24, 2022 (02:10:55 PM)

On This Page

FEEDBACK