round-numbers is a plugin for Kakoune text editor that rounds up a decimal number up to a certain number of decimal places.
Installation can be done, e.g., with plug.kak plugin manager or manually putting the *.kak file inside the auload directory.
With plugin manager, you can simply add this line in your .kakrc file.
plug "StatPal/round-numbers.kak"
Then reload Kakoune config or restart Kakoune and run :plug-install
.
This plug-in takes one parameter - the number of digits after decimal places. The default is 3. To use this plug-in, select the required region with the numbers and then type
:round-numbers 4
to have numbers rounded (or expanded) upto 4 decimal places.
This is inspired mostly by Screwtapello.