6 kyu

Number Format

1,373 of 3,382cnawaraj

Description:

Format any integer provided into a string with "," (commas) in the correct places.

Example:

For n = 100000 the function should return '100,000';
For n = 5678545 the function should return '5,678,545';
for n = -420902 the function should return '-420,902'.
Regular Expressions
Fundamentals

Stats:

CreatedNov 30, 2015
PublishedNov 30, 2015
Warriors Trained5120
Total Skips241
Total Code Submissions12708
Total Times Completed3382
JavaScript Completions1373
C# Completions447
C++ Completions369
Python Completions1181
Ruby Completions109
Crystal Completions15
CoffeeScript Completions11
Total Stars53
% of votes with a positive feedback rating88% of 591
Total "Very Satisfied" Votes475
Total "Somewhat Satisfied" Votes95
Total "Not Satisfied" Votes21
Total Rank Assessments65
Average Assessed Rank
6 kyu
Highest Assessed Rank
4 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • cnawaraj Avatar
  • GiacomoSorbi Avatar
  • Deantwo Avatar
  • Jotha Avatar
  • kazk Avatar
  • e.mihaylin Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • ejini战神 Avatar
  • Just4FunCoder Avatar
  • yLaWy Avatar
  • LosBlobbos Avatar
Ad