Increment a numerical string: Difference between revisions
Content added Content deleted
Basicgames (talk | contribs) |
m (→{{header|AppleScript}}: →AppleScriptObjC: Unnecessary variable and line removed.) |
||
Line 548: | Line 548: | ||
-- Catered-for exponent symbol in the input string. Set the output style to "scientific". |
-- Catered-for exponent symbol in the input string. Set the output style to "scientific". |
||
its setNumberStyle:(|⌘|'s NSNumberFormatterScientificStyle) |
its setNumberStyle:(|⌘|'s NSNumberFormatterScientificStyle) |
||
its setExponentSymbol:(str's substringWithRange:(symbolRange)) |
|||
its setExponentSymbol:(symbol) |
|||
else |
else |
||
-- Straight numerical text, with or without separators as per the input and locale. |
-- Straight numerical text, with or without separators as per the input and locale. |