Why float don't increase

  • Replies:0
Mehmet Onat Güvenir
  • Forum posts: 1

Sep 2, 2013, 2:27:59 PM via Website

Hi,
First I'm sorry my bad english

in AnswerPage.java

int obko=0;

static float obkohesap=0.0f;

I'm increasing obko variable on program

obkohesap=obko/10;


in ResultPage.java

txtobko.setText(AnswerPage.obkohesap+"");

when I runned program txtobko's text is 0.0 always.I'm sure there isn't an error on obko variable.

txtobko.text=0.0 when obko=12

How can I solve this problem?

obkohesap ile ilgili.Bunu nasıl çözebilirim?

Reply