vim users, is there a string to integer converter like str2float. I can very well use str2float to do it and later on use a regex to deal with the floating point zeros but life would be easy with something like str2int.
It's called str2nr(expr, [base]). And it's listed directly below str2float in help file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With