Subversion Repositories SmartDukaan

Rev

Rev 35064 | Rev 35285 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35064 Rev 35084
Line 93... Line 93...
93
            String secondval = String.format("%05d", quitonent);
93
            String secondval = String.format("%05d", quitonent);
94
            secondval = secondval.substring(0, 2);
94
            secondval = secondval.substring(0, 2);
95
            finalval = reminder + "." + secondval;
95
            finalval = reminder + "." + secondval;
96
            return String.valueOf(finalval) + " L";
96
            return String.valueOf(finalval) + " L";
97
        } else if (value >= 1000 && value < 100000) {
97
        } else if (value >= 1000 && value < 100000) {
98
            long reminder = value / 1000;
98
            long reminder = value / 100000;
99
            long quitonent = value % 1000;
99
            long quitonent = value % 100000;
100
            String secondval = String.format("%03d", quitonent);
100
            String secondval = String.format("%03d", quitonent);
101
            secondval = secondval.substring(0, 2);
101
            secondval = secondval.substring(0, 2);
102
            finalval = reminder + "." + secondval;
102
            finalval = reminder + "." + secondval;
103
            return String.valueOf(finalval) + " K";
103
            return String.valueOf(finalval) + " L";
104
        } else if (value >= 10000000 && value < 1000000000) {
104
        } else if (value >= 10000000 && value < 1000000000) {
105
            long reminder = value / 10000000;
105
            long reminder = value / 10000000;
106
            long quitonent = value % 10000000;
106
            long quitonent = value % 10000000;
107
            finalval = reminder + "." + quitonent;
107
            finalval = reminder + "." + quitonent;
108
            String secondval = String.format("%07d", quitonent);
108
            String secondval = String.format("%07d", quitonent);