Hallo,
i wish to round any float in a integer in a (svg) path.
I try
awk '/[-+]?\d*\.?\d+/ {print int($1+0.5)}' input.svg>output.svg
but the output (in the file) is 0 0.
The regex works fine and the round is tested. What's the problem?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.