To transform decimal numbers into their corresponding integers in a long timeseries, you can use a simple JavaScript function. Here's an example:
function formatNumber(num) {
return Math.floor(num);
}
You can then apply this function to your data array:
let data = [55.000, 67.500, 89.335, 45.001];
data = data.map(formatNumber);
After that, you can output the transformed data as an HTML table:
<table>
<thead>
<tr>
<th>Index</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<?php for ($i = 0; $i < data.length; $i++) { ?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo data[$i]; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
This will create an HTML table with the transformed decimal numbers.
References: