Skip to content

Instantly share code, notes, and snippets.

View JuvenalAmarante's full-sized avatar
💻
Studing

Juvenal Amarante JuvenalAmarante

💻
Studing
View GitHub Profile
calculateModule = (numero, divisor) => {
const valor = (numero / divisor).toFixed(2);
const inteiro = Math.trunc(valor);
const decimal = valor - inteiro;
const resto = decimal * divisor;
return resto;
}