Exporting data from HTML table via JS to xls, does not leave values as it is
0
I am exporting data using JavaScript, but it does not leave my values as decimal. For example 56.00 turns as just 56. I tried to use .toFixed(), but it does not help. I have a lot of HTML and JS code, so i dont know what exact code part you would like to see. But maybe someone have solved the same problem? Here is my JS export HTML - .xls code. function Exc(elem){ var tables = document.querySelectorAll("#tableWrapper .col-lg-12"); var tab_text = ""; // Add variable with names of all tables var fileName = "("; if(tables.className != "hidden") { for(var i = 0; i < tables.length; i++) { tab_text += "<table border='3px'><tr bgcolor='#87AFC6'>"; // Get n...