posted 16 years ago
Hello Ranchers!!
I have a few Double members, with setters and getters.
I recently received a request that the getters will return a double with only two digits after the decimal points(decimal digits, that is).
e.g - the number for the number 5.123 the getter will return will return 5.12.
Now, I remembered something called "scaling" , setScale , but I can't find this method in the Double object nor in the API.
I know I can always write a small util, but I always prefer something ready.
Any suggestions??