nmsmith22389 / vscode-incrementor

Advanced increment / decrement actions for (almost) anything.
13 stars 10 forks source link

Numbers with leading zeros have these leading zeros removed #4

Open thettenhausen opened 7 years ago

thettenhausen commented 7 years ago

For me easy to replicate: I am working on CSV files containing numbers with leading zeros, and incrementing them removed the zeros.

01,BP,0000006760,Test 01,BP,0000006760,Test 01,BP,0000006760,Test 01,BP,0000006760,Test

Becomes

01,BP,6761,Test 01,BP,6761,Test 01,BP,6761,Test 01,BP,6761,Test

Workaround is of course selecting only the 6760 instead of the whole 0000006760, but it seems a little off for me.

nmsmith22389 commented 7 years ago

This is something ill have to look into. I may have to put in an option or something.

KillyMXI commented 6 years ago

Please make it possible to keep the same number of zeroes after decimal point too: 1.0 -> 2.0 1.00 -> 2.00 1.010 -> 2.010