v1
- by inphinitphp 10/4/202000
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
var mainValue = 1000.01,
    config1 = { minimumFractionDigits: 2, maximumFractionDigits: 2 },
    config2 = new Intl.NumberFormat('pt-BR');

function testToLocaleString(value) {
    return value.toLocaleString('pt-br', config1);
}

function testIntlNumberFormat(value) {
    return config2.format(value);
}
delete caserun single casemove downdrag and drop case


ready



testToLocaleString(mainValue);
delete caserun single casemove updrag and drop case


ready



testIntlNumberFormat(mainValue);
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN