yokzu

yokzu

  • NA
  • 306
  • 0

Showing 2 character from a double variable

Nov 2 2011 3:10 AM
Hi,
I am just doing a divide and multiplication process like below;

-----------
double a=2;
double b=3;
double c =(a/b) *100;
-----------

The result is "66.666666666666657". I wanna show only first 2 character from start, "66".  How can I do that?


Answers (3)