Skip to Content
0
Former Member
Mar 26, 2009 at 05:19 PM

Rouding off ...?

32 Views

Hi ,

Can anybody help me with this requirement.

- if the number to print is integer, do not print comma.

- if the number to print is not integer, print 3 digit after comma.

Examples:

"128.32": NOT ALLOWED

"128.320": ALLOWED

"128.000": NOT ALLOWED

"128": ALLOWED.

Please let me know what is the procedure i need to follow to accomplish the task .