3
Answers

simple

Felipe Marks

Felipe Marks

17y
3k
1

Hi i would like to know how to get rid of of the decimals if i have a number eg: 2.56 changed to: 2.

i've tried the Math.Round() but it rounds to the nearest 10 I just want the decimals away. I tried changing the double to an int variable. I probably dont know how cause I got stuck trying.

I know this is a simple problem to solve I dont know y im taking stuck with it. Any ideas?

thanks

Answers (3)