You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
}
The text was updated successfully, but these errors were encountered:
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)
}
The text was updated successfully, but these errors were encountered: