https://github.com/romenrg/kata-converting-integer-to-currency
Converting integer to currency format, kata from codewars.com
https://github.com/romenrg/kata-converting-integer-to-currency
Last synced: 8 months ago
JSON representation
Converting integer to currency format, kata from codewars.com
- Host: GitHub
- URL: https://github.com/romenrg/kata-converting-integer-to-currency
- Owner: romenrg
- License: mit
- Created: 2015-12-11T14:05:46.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-12T09:25:01.000Z (almost 10 years ago)
- Last Synced: 2025-02-21T23:48:59.169Z (8 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# kata-converting-integer-to-currency
Converting integer to currency format, kata from codewars.com## Description
Write a function that takes an integer in input and outputs a string with currency format.
Integer in currency format is expressed by a string of number where every three characters are separated by comma.
Ex. 123456 -> "123,456"
Input will always be an positive integer, so don't worry about type checking or negative/float values.