When formatting a number into a string, I can limit the characters after a decimal point with, e.g., %.03f (display three digits after the point), but how do I also remove all digits BEFORE the point?
For example, I’d like 100.943 to format to ".943".
I think the only way for you to do that would be to remove the number before the decimal point using math, or string manipulation after the fact, like
componentsSeparatedByString:@"."A simple math way of removing it would be: