# Python Numeric Types

**URL:** https://forum.networklessons.com/t/python-numeric-types/10050
**Category:** Lessons Discussion
**Created:** [February 27, 2020, 2:53pm UTC](https://forum.networklessons.com/t/python-numeric-types/10050 "2020-02-27T14:53:38Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pradyumnayadavgla](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/p/f9ae1b/32.png) [@pradyumnayadavgla](https://forum.networklessons.com/u/pradyumnayadavgla)
#### Post date: [May 29, 2020, 8:23pm UTC](https://forum.networklessons.com/t/python-numeric-types/10050/2 "2020-05-29T20:23:48Z")

</div>

Hi Rene,

In given eg,  
my\_integer = 1.9  
type(my\_integer)

my\_int = int(my\_integer)  
type(my\_int)

i could not understand the output of last two commands , as per me it will be like this:

```
type(my_integer) = type(1.9)
my_int = int(1.9)
type(my_int) = type (int(1.9))

```

so as per you it shows that class is integer(what integer) and How and how it get rid of decimal values?

---

_[View the full topic](https://forum.networklessons.com/t/python-numeric-types/10050)._
