# Dealing with numbers

**URL:** <https://forum.ionicframework.com/t/dealing-with-numbers/147956>\
**Category:** ionic-v3\
**Created:** [November 19, 2018, 2:20pm UTC](https://forum.ionicframework.com/t/dealing-with-numbers/147956 "2018-11-19T14:20:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iAhmad89](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/iahmad89/32/122607_2.png) [@iAhmad89](https://forum.ionicframework.com/u/iAhmad89)\
**Post date:** [November 19, 2018, 2:20pm UTC](https://forum.ionicframework.com/t/dealing-with-numbers/147956/1 "2018-11-19T14:20:32Z")

</div>

Hello,

I’m getting multiple values from the server and i need to do some mathematical operations with them (adding / multiplication). The server sends me the values like this:  
`123,456.789`  
What i learned from digging through the internet that i need to parse it either to int or float, but for some numbers it does work, some not !  
e.g.: `parseFloat(3.63)` gives 3.63  
but `parseFloat(104,857.60")` gives 104 only !

Any hint, clue, link would be appreciated !

Thanks in advance

---

<div class="post-metadata">

**Author:** ![iAhmad89](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/iahmad89/32/122607_2.png) [@iAhmad89](https://forum.ionicframework.com/u/iAhmad89)\
**Post date:** [November 19, 2018, 2:26pm UTC](https://forum.ionicframework.com/t/dealing-with-numbers/147956/2 "2018-11-19T14:26:59Z")

</div>

nvm, problem fixed.  
the thousand separator was the issue.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:09pm UTC](https://forum.ionicframework.com/t/dealing-with-numbers/147956/3 "2021-07-19T21:09:25Z")

</div>

Closed on July 19, 2021, 9:09pm UTC


