-2
Good afternoon, I am preparing, where the matrix is formed by the following code:
var valores4='';
for(var LL =0;LL < noc*nol;LL++){
    for(var CC =0;CC < nol*noc;CC++){
        if(CC < noc*nol-1){
            valores4 += matriz_valores[LL][CC] + "\t";  
        }
        else{
            valores4 += matriz_valores[LL][CC] + "\n"; 
        }       
        var valores5 = '';
        for(var C1=0;C1<noc*noc;C1++){
          valores5 += matriz_cte[C1] + "\n";    
        }   
        console.log("Matriz com o Triângulo Inferior = 0: \n", valores4);
        console.log("Vetor [b] atualizados: \n", valores5);
    }
}
He is working, but the answers obtained are:
Matriz com o Triângulo Inferior = 0: 
 -1.975 0.263   0.250   0.000
0   -1.0316232911392405 0.017468354430379748    0.25
0   0   -1.4831279301246258 0.27348795654973657
0   0   0   -0.8578988360199865
How can I rent the decimal places???
I could do it here, I only had to make this change in my code: values4 += Number(matriz_values[LL][CC]). toFixed(3) +" t"; E reduced decimal places. .
– Policarpo Almeida