JSFiddle - React, Tailwind, and code Playground

HTML

<span class="num">123424234</span>
<span class="num">25234323</span>
<span class="num">3531</span>

JavaScript

$(".num").each(function(){

    //alert( format($(this).html()) );
    alert( formatNumber($(this).html()) );
});

function formatNumber(n) {
    
    return (Math.round(n * 100) / 100).toLocaleString() + ' төг';
}