Skip to content

Conversation

@idelbiw
Copy link

@idelbiw idelbiw commented May 12, 2022

Finished all the steps with the stretch goal too, getting comfortable with NumberFormatter :)

idelbiw added 3 commits May 11, 2022 20:32
…this one was pretty short.

created some variables with values that reflect the current value of the USD in canadian dollars and mexican pesos, and created a couple conversion functions that take in amount of USD and convert based on which enum case the currency property is set to, one takes in a double and one takes in a string input.
gonna work on the stretch goal.
…the conversion looking like USD when this is supposed to be converted FROM USD.

I'm going to make another function that customizes the number formatter to make the result look appropriate and match its own currency type.
… use a number formatter, so now it displays the converted currency properly. (Example: canadian dollars will look like C$100.00 or mexican pesos will look like $MX1,950.00)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant