vscode-string-manipulation
vscode-string-manipulation copied to clipboard
Incrementing floating point numbers not working correctly
when selecting a floating point number and run the command increment
it behaves wrong:
before:
1.2
after:
2.3
It's intent is do increment whole numbers which is why it's incrementing each one. But this feature request is reasonable.
You'd expect 1.2 to become 2.2 correct?
On Mon, Jun 14, 2021, 8:00 AM Mohammad Mostafa @.***> wrote:
when selecting this piece of code and run the command increment it behaves wrong:
before:
1.2
after:
2.3
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/marclipovsky/vscode-string-manipulation/issues/29, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA3OZG3CI76AGPLQXZQHUTTSX4PBANCNFSM46VF77OQ .
You'd expect 1.2 to become 2.2 correct?
I think it should increment by the smallest value. (sorry if I made a mistake due to poor English)
I mean 2.2
-> 2.3
and 1.235
-> 1.236
Or even you can add some options to let the user choice how incrementing is done.
Maybe I'll add "increment decimal" or something.
On Tue, Jun 15, 2021, 4:04 AM Mohammad Mostafa @.***> wrote:
Or even you can add some options to let the user choice how incrementing is done.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/marclipovsky/vscode-string-manipulation/issues/29#issuecomment-861324929, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA3OZFMZBYLITY4Z7V5FATTS4JTTANCNFSM46VF77OQ .
@MohammadMD1383 I'll resolve this week