G GuyBooth Active Member Licensed User Longtime User Jan 4, 2019 #1 I just used a smartstring with this structure: Code: Copy var = "1234" Log($"Result: $4.0{var}"$) I guess I was surprised when the result showed up with a comma in it: Code: Copy Result: 1,234 I just wanted the numbers (but a minimum of four of them hence the smartstring format). Is there a simple way to exclude the comma from the smartstring? Or will I have to do this: Code: Copy var = "1234" var = $"$4.0{var}"$ var = var.Replace(",","") Log(var) which seems way more complex than it should be.
I just used a smartstring with this structure: Code: Copy var = "1234" Log($"Result: $4.0{var}"$) I guess I was surprised when the result showed up with a comma in it: Code: Copy Result: 1,234 I just wanted the numbers (but a minimum of four of them hence the smartstring format). Is there a simple way to exclude the comma from the smartstring? Or will I have to do this: Code: Copy var = "1234" var = $"$4.0{var}"$ var = var.Replace(",","") Log(var) which seems way more complex than it should be.
G GuyBooth Active Member Licensed User Longtime User Jan 4, 2019 #3 Cableguy said: is the var defined as a STRING? Click to expand... I tried it with var as a String and var as Int. No difference. Upvote 0
Cableguy said: is the var defined as a STRING? Click to expand... I tried it with var as a String and var as Int. No difference.
G GuyBooth Active Member Licensed User Longtime User Jan 5, 2019 #4 GuyBooth said: I tried it with var as a String and var as Int. No difference. Click to expand... I can use the NumberFormat2 with Grouping = False. Not quite as elegant but still simple. Upvote 0
GuyBooth said: I tried it with var as a String and var as Int. No difference. Click to expand... I can use the NumberFormat2 with Grouping = False. Not quite as elegant but still simple.