8 kyu
Convert a String to a Number!
1,776 of 288,695bkaes
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 | 356691 |
Total Skips | 16663 |
Total Code Submissions | 438070 |
Total Times Completed | 288695 |
Haskell Completions | 1776 |
JavaScript Completions | 108868 |
CoffeeScript Completions | 273 |
Ruby Completions | 6376 |
Clojure Completions | 922 |
Python Completions | 91315 |
Java Completions | 27935 |
C# Completions | 15358 |
Elixir Completions | 812 |
C++ Completions | 16813 |
Rust Completions | 4248 |
C Completions | 4783 |
PHP Completions | 5463 |
Lua Completions | 820 |
Groovy Completions | 170 |
Dart Completions | 2169 |
Julia Completions | 160 |
Racket Completions | 97 |
TypeScript Completions | 4321 |
R Completions | 441 |
Crystal Completions | 34 |
COBOL Completions | 73 |
Go Completions | 3365 |
Kotlin Completions | 2191 |
Factor Completions | 26 |
Scala Completions | 248 |
Swift Completions | 257 |
Total Stars | 1031 |
% of votes with a positive feedback rating | 88% of 14646 |
Total "Very Satisfied" Votes | 11772 |
Total "Somewhat Satisfied" Votes | 2323 |
Total "Not Satisfied" Votes | 551 |