8 kyu

Convert a String to a Number!

1,793 of 294,710bkaes

Description:

Note: This kata is inspired by Convert a Number to a String!. Try that one too.

Description

We need a function that can transform a string into a number. What ways of achieving this do you know?

Note: Don't worry, all inputs will be strings, and every string is a perfectly valid representation of an integral number.

Examples

"1234" --> 1234
"605"  --> 605
"1405" --> 1405
"-7" --> -7
Parsing
Strings
Fundamentals

Stats:

CreatedOct 21, 2014
PublishedNov 4, 2014
Warriors Trained364403
Total Skips16999
Total Code Submissions447391
Total Times Completed294710
Haskell Completions1793
JavaScript Completions110622
CoffeeScript Completions274
Ruby Completions6420
Clojure Completions927
Python Completions93750
Java Completions28440
C# Completions15646
Elixir Completions819
C++ Completions17313
Rust Completions4323
C Completions4908
PHP Completions5533
Lua Completions837
Groovy Completions175
Dart Completions2233
Julia Completions161
Racket Completions100
TypeScript Completions4450
R Completions450
Crystal Completions37
COBOL Completions78
Go Completions3519
Kotlin Completions2240
Factor Completions28
Scala Completions253
Swift Completions308
Perl Completions10
Total Stars1045
% of votes with a positive feedback rating88% of 14817
Total "Very Satisfied" Votes11915
Total "Somewhat Satisfied" Votes2345
Total "Not Satisfied" Votes557
Ad
Contributors
  • bkaes Avatar
  • jhoffner Avatar
  • TheDoctor Avatar
  • bekh6ex Avatar
  • user578387 Avatar
  • cris Avatar
  • Unnamed Avatar
  • Jotha Avatar
  • AlexIsHappy Avatar
  • suic Avatar
  • JDeBolt Avatar
  • Chrono79 Avatar
  • kazk Avatar
  • LesnyRumcajs Avatar
  • lilsweetcaligula Avatar
  • acjoker Avatar
  • Voile Avatar
  • mitron6 Avatar
  • Souzooka Avatar
  • eb110 Avatar
  • FArekkusu Avatar
  • lbvf50mobile Avatar
  • monadius Avatar
  • hobovsky Avatar
  • stellartux Avatar
  • tfuerholzer Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • Kacarott Avatar
  • photo-pizza-importance Avatar
  • ErrorEcki Avatar
  • razetime Avatar
  • KayleighWasTaken Avatar
Ad