A dishonest shopkeeper declares that he sells his items at cost price, but actually, he uses a false weight of 850 gm for 1 kg. His gain percent is,
17 1117%.
The trader declares that he sells 1 kg of goods at the cost price of 1 kg, say C.P. But the 1 kg he sells actually weighs 850 gm for which he paid, 0.85 C.P only. This is his actual cost price.
So by definition, his profit is,
C.P−0.85C.P = 0.15 C.P.
Don't confuse the cost price to be C.P, in this case, for-profit calculation. He actually makes this profit at a cost price of 0.85CP. So the profit is,
0.15C.P0.85C.P x 100 = 30017 = 17 1117%.