Strange bug when displaying values in a UI text field Xcode
<p>I have been working on a converter app for iOS, and I have encountered a strange bug. My program uses a picker view to choose what to convert between, and you enter into a textfield via buttons the number of meters/ inches/ grams/ etc. to convert. Then it displays the converted units in a second label.</p>

<p>The problem is that with certain calculations (meters to micrometers for example) I can enter convert one meter to micrometers and it returns 1,000,000 on the meter label and 1 on the micrometer end instead of vice versa. The strangest part is that I am using decimal number with mantissa for more accurate calculations and when I change the exponent the problem goes away, and it displays the values on the correct labels, however it makes the conversion wrong. I have tried debugging the problem several ways.</p>

<p>I can discuss them if needed, but the part that perplexes me the most is that, not only when I NSLog the conversion do I find that the values were converted correctly, but that when using NSLog on the text labels, I find that the the text labels output the correct values into the console, they just display the wrong values in the simulator. This problem is rare and only occurs on a handful of calculations (which appear to be random and seem to have no correlation with each other).</p>

<p>I did not include any code because I don't know what to upload - the code for the program is really long, but if needed I can post some code online. Any help is appreciated. </p>
