Increment a numerical string: Difference between revisions

Content deleted Content added
Puppydrum64 (talk | contribs)
Rdm (talk | contribs)
Line 1,756: Line 1,756:
<lang j>incrTextNum=: >:&.".</lang>
<lang j>incrTextNum=: >:&.".</lang>


Note that in addition to working for a single numeric value, this will increment multiple values provided within the same string, on a variety of number types and formats including rational and complex numbers.
Note that in addition to working for a single numeric value, this will increment multiple values provided within the same string, on a variety of number types and formats including rational and complex numbers (though mixing these notations will coerce all values in the list to a lowest common denominator type).
<lang j> incrTextNum '34.5'
<lang j> incrTextNum '34.5'
35.5
35.5