JSFiddle - React, Tailwind, and code Playground

by alnitak

HTML

<table/>

CSS

table td:first-child {
    text-align: right;
}

JavaScript

var n = [
    "23.24",
    "1,234.665",
    "123.4"
    ];

$.each(n, function(i, v) {
    var a = v.split('.');
    $('table').append($('<tr>').append($('<td>', {text: a[0] + '.'}), $('<td>', {text: a[1]})));
});