+ 1

Make a float value back into interger

Can i make a Float value back into an interger without specifically subtracting the decimal numbers?

18th Aug 2020, 4:56 PM
Alexor Scharfschützer
Alexor Scharfschützer - avatar
2 odpowiedzi
18th Aug 2020, 5:08 PM
Pete Cowling
Pete Cowling - avatar
+ 7
Integer() and Float() or to_i and to_f
18th Aug 2020, 5:10 PM
Julia Shabanova
Julia Shabanova - avatar