I am having a double value with a constantly varying number of digits, like :
double d = 0.6645566;
double d = 0.664555666766;
double d = 0.66455887656655566;
I want this double to never have more than two digits, like:
double d = 0.66;
None of the solutions here seems to work, due to limitations in the CN1 APIs, I suppose.
Many thanks in advance for any kind answer. How would I achieve this in Codename One?