You need to sign in to do that
Don't have an account?
Vishal_Thoriya
How to get values of digit after decimal point notation ?
Hi,
I am having decimal number like this : 4.77080
but i want only 77 after decimal point notation.
How can i achieve this?
Any kind of help will be greatly appriciated.
Thanks in advance..
Vishal.
Hi,
you can use setScale method in Apex class
For Eample
decimal aa=43.3432332343344;
aa= aa.setScale(2);
system.debug('@@@@@'+aa);
All Answers
Hi,
You can use the below code snippet as reference
question? If not, let me know what didn't work, or if so, please mark it solved.
Thanks for the help buddy,
but i want to achieve it on controller side (Apex Class) not on visualforce page.
is there any way to do so ?
Thanks,
Vishal.
Hi,
you can use setScale method in Apex class
For Eample
decimal aa=43.3432332343344;
aa= aa.setScale(2);
system.debug('@@@@@'+aa);
@ Vishal
Khotu
tamaro javab perfect na kehvay
Tame jao Bahar....