no longer manipulating prop. still can't get formatting to twork

This commit is contained in:
Annika
2022-07-12 16:12:03 -06:00
parent ef06dd057a
commit df80f78072
12 changed files with 265 additions and 22 deletions
+8
View File
@@ -0,0 +1,8 @@
export function getDollars(cents) {
// return `$${Math.floor(cents / 100)}.${cents % 100}`
return cents / 100
}
export function getCents(dollars) {
return Math.round(dollars * 100)
}