For example, to convert between g and kg, I have a constant 1000:
public static final float G_TO_KG=1000;
.
.
.
this.result = someResult*1000;
I found G_TO_KG always bind to operator '*'. So my question is, is it better to define a static method:
public static float gToKg(result){
return result*1000;
}
So that I would not use wrong operator, also don't need to repeat the operator each time?