SOLVED
Converting a string to double
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Usamah22
8 - Asteroid
‎03-10-2021
07:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
hello,
I have a string with numbers such as 1,432.22 which i want to convert to a double but when i do this using the select function the number becomes 1. I've put in a data cleanse before converting but that has removed the decimal point so i end up with 143222. How can i just get the number i want when converting to double?
Thanks
Solved! Go to Solution.
Labels:
- Labels:
- Developer
2 REPLIES 2
17 - Castor
‎03-10-2021
07:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Usamah22,
You need to remove , from your numbers.
I have used this formula to make it happen:
Replace([Field1], ',', '')
Coakles
7 - Meteor
‎04-06-2023
08:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This worked for me! but why? why do you have to remove the comma? @Emil_Kos
