'how to add span after comma - jquery

I made a counter and I want to put in Span the numbers after the comma. my code is like this:

const startVal = 0;
const startValDate = new Date('2020-9-1'.replace(/-/g, "/"));
const incrementVal = 0.0144;

var calcTimer = setInterval(function(){
var currentDate = new Date();
var diff = Math.abs(Math.round((currentDate.getTime() - startValDate.getTime()) / 1000));
var result = startVal + (diff * incrementVal);
$('#producedEnergy').html(new Intl.NumberFormat('tr-TR', {minimumFractionDigits: 2, maximumFractionDigits : 2}).format(result.toFixed(2)) +'<small>kWh</small>');
console.log(result.toFixed(2))
},1000);

enter image description here

very happy if you help. thank u.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source