Output format

|0 | 0.5 | | -0.375 | | 0.5 |
Hi,
I wonder how can i format the output of columns and also the numbers aligned by the decimal comma.
Below some of my output.

Thanks in advance.
Cheers,
|1 | 0.25 | | 0.265625 | | 0.25 |
|2 | 0.375 | | -0.072265625 | | 0.125 |
|3 | 0.3125 | | 0.093017578125 | | 0.0625 |
|4 | 0.34375 | | 0.0093688964843 | | 0.03125 |
|5 | 0.359375 | | -0.031711578369 | | 0.015625 |
|6 | 0.3515625 | | -0.011235713958 | | 0.0078125 |
|7 | 0.34765625 | | -0.000949323177 | | 0.00390625 |
|8 | 0.345703125 | | 0.0042058303952 | | 0.001953125 |
|9 | 0.3466796875 | | 0.0016272617504 | | 0.0009765625 |
|10 | 0.34716796875 | | 0.0003387209726 | | 0.00048828125 |
|11 | 0.347412109375 | | -0.000305363224 | | 0.000244140625 |
|12 | 0.3472900390625 | | 1.6663349015288 | | 0.0001220703125 |
|13 | 0.34735107421875 | | -0.000144353819 | | 6.103515625e-05 |
|14 | 0.347320556640625 | | -6.384620573385 | | 3.0517578125e-05 |
|15 | 0.347305297851562 | | -2.359167094923 | | 1.52587890625e-05 |
|16 | 0.347297668457031 | | -3.464221613125 | | 7.62939453125e-06 |
|17 | 0.347293853759766 | | 6.5995485396541 | | 3.814697265625e-06 |
|18 | 0.347295761108398 | | 1.5676596729630 | | 1.9073486328125e-06 |
|19 | 0.347296714782715 | | -9.482819176565 | | 9.5367431640625e-07 |
|20 | 0.347296237945557 | | 3.0968864073166 | | 4.76837158203125e-07 |

Check PrettyTables.jl.

1 Like

Thanks @runjaj, if i understand i can use prettytables for the ouput of printf?