Program gto_upper_bound

The gto_upper_bound sets an upper bound in a file with a value per line.

For help type:

./gto_upper_bound -h


In the following subsections, we explain the input and output paramters.

Input parameters

The gto_upper_bound program needs two streams for the computation, namely the input and output standard. The input stream is a numeric file.

The attribution is given according to:

Usage: ./gto_upper_bound [options] [[--] args]
or: ./gto_upper_bound [options]

It sets an upper bound in a file with a value per line.

-h, --help show this help message and exit

Basic options
-u, --upperbound= The upper bound value
< input.num Input numeric file (stdin)
> output.num Output numeric file (stdout)

Example: ./gto_upper_bound -u < input.num > output.num


An example of such an input file is:

0.123
3.432
2.341
1.323
7.538
4.122
0.242
0.654
5.633


Output

The output of the gto_upper_bound program is a set of numbers truncated at the a defined upper bound.

Using the input above, an output example for this is the following:

Using upper bound: 4
0.123000
3.432000
2.341000
1.323000
4.000000
4.000000
0.242000
0.654000
4.000000