Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
how to remove all decimals from a number python
Andrew Kozak
Programming language:
Python
2021-06-25 19:14:23
0
Q:
how to remove all decimals from a number python
nanu146
Code:
Python
2021-06-16 02:07:34
number
=
3.908753
number
= (
int
(
number
))
print
(
number
) >>>
3
1
Tags
number
python
remove
how
Related
how to round a decimal to the nearest whole number in python
finding 2 decimal places python
print 2 decimal places python
python print with 2 decimals
sorting decimal numbers in python
how to add extra zeros after decimal in python
python print 2 decimal places
python remove all except numbers
python count number of digits in integer
printing with format float to 2 decimal places python
remove decimal python
How to solve not in base 10 in python when using decimals
python convert hex number to decimal
how to print a float with only 2 digits after decimal in python
python format only 1 decimal place
format to 2 or n decimal places python
how to multiply 2 decimals together and get answer back in python
New to Communities?
Join the community