Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

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...