Skip to Content
0
Former Member
Jun 17, 2008 at 08:46 AM

removing decimals when initial

22 Views

i declared variable 'ulimit' as type p decimals 2.

ulimit type p decimals 2.

now its printing as ulimit = 12.00 (when no decimals are there)

ulimit = 13.76(when decimals are there)

but when no decimals are there i should print as ulimit = 12 only (not ulimit = 12.00).Please help.

Thanks

K Srinivas