Numbers
title: Python Numbers author: Juma Shafara date: "2023-11" date-modified: '2024-11-25' description: What are the different types of Python Numbers keywords: [python numbers, number types, number arithmetics, number methods]

Numbers
Table of Contents
In this notebook, you will learn the following
- Number types
- Number arithmetics
- Number methods
In python, there are three types of numbers
- Integer - `int`
- Floating Point - `float`
- Complex - `complex`
Types
Integer
An integer is a number without decimals
Floating Point
A floating point number of just a float is a number with decimals
Complex
A comple number is an imaginary number. To yield a complex number, append a j o J to a numeric value
Number Arthmetics
Below are some of the basic arithmetic operations that can be performed with numbers
Number Methods
Number methods are special inbuilt functions used to work with numbers
Exercise
Write a program to assign the number 64.8678 to a variable named “number” then display the number rounded to two decimal places.