Felipe Marks

Felipe Marks

  • NA
  • 76
  • 0

simple

Oct 3 2007 3:32 AM

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)