Changes between Initial Version and Version 1 of Ticket #3747, comment 2


Ignore:
Timestamp:
12/27/16 13:22:11 (7 years ago)
Author:
zaytsev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3747, comment 2

    initial v1  
    11To be honest, I feel bad about the replacement, because it will obviously not handle all kinds of badness like `.2`, `1.2e3` and such. Of course, this doesn't make too much sense, but you said it yourself that we don't have a lot of valid inputs to test against. 
    22 
    3 How about using `awk` instead? It is used in the script anyways, and has a handy `int()` function. I'm not an `awk` expert, but I would imagine that something like `awk '{ print int($1) }'` would do the trick. 
     3How about using `awk` instead? It is used in the script anyways, and has a handy `int()` function. I'm not an `awk` expert, but I would imagine that something like `awk '{ print int($0) }'` would do the trick.