When I use the NSNumberFormatter to format the result of a calculation the result ends up like this 0.185%. I would like the result to be 18.5% prior to using th NSNuberFormatter the result was 0.185 is there a way to get a decimal number to format as a percentage correctly?
Hallo bmbingham,
perhaps you have forgotten to multiplay the result by 100.
For example:
set calculateExample to (2345 / 5678) – as real
set contents of text field “field” of window “window” to calculateExample * 100
Greetings
Heiner
Heiner,
Thanks for your help. It seems like when I get stuck it’s usually something very simple.