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
Similar Kata:
Stats:
Created | Oct 21, 2014 |
Published | Nov 4, 2014 |
Warriors Trained | 364403 |
Total Skips | 16999 |
Total Code Submissions | 447391 |
Total Times Completed | 294710 |
Haskell Completions | 1793 |
JavaScript Completions | 110622 |
CoffeeScript Completions | 274 |
Ruby Completions | 6420 |
Clojure Completions | 927 |
Python Completions | 93750 |
Java Completions | 28440 |
C# Completions | 15646 |
Elixir Completions | 819 |
C++ Completions | 17313 |
Rust Completions | 4323 |
C Completions | 4908 |
PHP Completions | 5533 |
Lua Completions | 837 |
Groovy Completions | 175 |
Dart Completions | 2233 |
Julia Completions | 161 |
Racket Completions | 100 |
TypeScript Completions | 4450 |
R Completions | 450 |
Crystal Completions | 37 |
COBOL Completions | 78 |
Go Completions | 3519 |
Kotlin Completions | 2240 |
Factor Completions | 28 |
Scala Completions | 253 |
Swift Completions | 308 |
Perl Completions | 10 |
Total Stars | 1045 |
% of votes with a positive feedback rating | 88% of 14817 |
Total "Very Satisfied" Votes | 11915 |
Total "Somewhat Satisfied" Votes | 2345 |
Total "Not Satisfied" Votes | 557 |