# Going from a String to a Number | kirupa.com

**URL:** https://forum.kirupa.com/t/going-from-a-string-to-a-number-kirupa-com/400562
**Category:** programming
**Created:** [December 2, 2014, 1:58pm UTC](https://forum.kirupa.com/t/going-from-a-string-to-a-number-kirupa-com/400562 "2014-12-02T13:58:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)
#### Post date: [December 2, 2014, 1:58pm UTC](https://forum.kirupa.com/t/going-from-a-string-to-a-number-kirupa-com/400562/1 "2014-12-02T13:58:16Z")

</div>

by [kirupa](http://www.kirupa.com/me/index.htm) | 13 November 2013

By design, strings deal with text-based things. Numbers deal with...um...numbers. For the most part, unless you are displaying some text that includes numerical data, you will never need to mix and match numbers and strings together. That would just be weird and possibly unnecessary:

* * *
This is a companion discussion topic for the original entry at [http://www.kirupa.com/html5/going\_from\_a\_string\_to\_a\_number.htm](http://www.kirupa.com/html5/going_from_a_string_to_a_number.htm)
