Posts by Marcos Ricardo Rodrigues • 56 points
1 post
-
4
votes6
answers22035
viewsA: Compute the rest of a decimal division in Javascript
This simple function solves the problem function getValorParcelas(precoTotal,numeroParcelas){ var valorParcela = parseFloat(precoTotal/numeroParcelas).toFixed(2); var valorPrimeiraParcela =…