OpenLink Software

Usage stats on Align numbers at decimal point

 Permalink

an Entity in Data Space: 134.155.108.49:8890

You want to have them nice aligned with 5 decimals written out. First, we align any line left to the beginning: :%s§^\s*§§ 123 2.5678 -13.44 100.5 +47.11 Now we split at the decimal-point (if any) and shift the fractional part wide to the right and add five '0' at the end (because we want 5 fractional digts). :%s§\([-+]\?\d\+\)\.\?\(\d*$\)§\1 !\200000§ 123 !00000 2 !567800000 -13 !4400000 100 !500000 +47 !1100000 This tricky substitue aligns the fractional part at column 15: :%s§\%15c\s*!§!§ 123 !00000 2 !567800000 -13 !4400000 100 !500000 +47 !1100000 Finally we add a '+'-sign where it's missing:

Graph IRICount
http://dbkwik.webdatacommons.org15
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] This material is Open Knowledge Creative Commons License Valid XHTML + RDFa
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Copyright © 2009-2012 OpenLink Software