please using the Math.round(), rounds my to 21.00, and 11.00, instead of 20.95, and 10.90 from the example.
i don't know if is from my browser or there's an error in my code.
export function formatCurency(priceCent){
return( Math.round(priceCent / 100)).toFixed(2)
}
please using the Math.round(), rounds my to 21.00, and 11.00, instead of 20.95, and 10.90 from the example. i don't know if is from my browser or there's an error in my code.
export function formatCurency(priceCent){ return( Math.round(priceCent / 100)).toFixed(2) }