Learn to Program with ZedLX

Free Online Programming Course for Beginners

The Type int [4/14]

A value of type num can be turned into an int in various ways:

  • The getter .round rounds the number.
  • The getter .int keeps only the whole part of the number.
  • The getter .floor returns the first lesser or equal integer.
  • The getter .ceil returns the first greater or equal integer.

Loading...