Home:ALL Converter>How can I convert a float into an int where I can?

How can I convert a float into an int where I can?

Ask Time:2018-02-03T06:12:16         Author:Yungpythonnoob

Json Formatter

age = int(input('Enter your age: '))
print('How old are you?',age)
x = (.5(age)-13)
y = (.5(age)+13)
print('You can date people between', x, 'and', y)

I realize that age becomes a float for whatever reason. How can I modify it so that age becomes something that I can use in my given equations? I was thinking of stripping it or trying to convert it to an int?

Author:Yungpythonnoob,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/48591601/how-can-i-convert-a-float-into-an-int-where-i-can
yy