Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. pawelf

    Wish to round float in integer

    I wrote a little zenityscript: #!/bin/bash zenity --info --text "With this tool, you can convert the float number in a SVG file in a integer numbers. This will important reduce the size of the file.The convertetd file will save in the same directory like this script." input=`zenity...
  2. pawelf

    Wish to round float in integer

    It works fine from a file (f.e. awk.sh) but not from the command line. Can i use it in this way? awk -f float2integer.awk input.svg>output.svg
  3. pawelf

    Wish to round float in integer

    The expected code is: .. d="m78,22c-1,0-3,0-4,...
  4. pawelf

    Wish to round float in integer

    A svgpath look like this .. d="m78.222,22.069c-1.4335,0.0073-2.8714,0.12168-3.7812, and so on That's why i use the regex to find all (and only) the floats
  5. pawelf

    Wish to round float in integer

    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?

Part and Inventory Search

Back
Top