I am trying to trim zeros after a decimal point as below but it\'s not giving desired result.
trig = [currentVal doubleValue]; trig = trig/100; NSNumberForma
it is because of your datatype cannot be formatted is such a manner.