Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

304
Views
Exporting DataTable to excel - number
$(document).ready(function () {
    $.fn.dataTable.moment(lang == "en" ? 'DD/MM/YYYY' : 'DD.MM.YYYY');
    categories_table = $('.datatable').DataTable({
        order: [[1, 'desc']],
        language: datatable_lang,
        dom: 'Bfrtip',
        buttons: [
            {
                extend: 'collection',
                autoClose: 'true',
                text: '<i class="download icon">',
                tag: 'span',
                buttons: ['csv', 'print', 'excel']
            }
        ]
    });
});

This gives nice looking format for price, like "8,00" as example. But when I export that to excel, I get "800" as value. And if number is "18,00", excel will show it as "1,800".

Is there any way to sort this out and have same values in excel as well? I try a lot thing but I didnt do it. Sorry for my English Thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!