Questions tagged [trailing]

Trailing characters are characters at the end of a string that should be removed for reason (eg. trailing zeros in "0.5000", trailing spaces in "hello ", trailing slash in a URL, trailing newline character, etc.).

This tag should be used for questions related to strings formatting issues, either when the goal is to parse the string or to display it. However context may be very different from one question to the other, and this tag covers a wide area.

217 questions
-2
votes
1 answer

Trailing comma in object

$.ajax({ url:"test.html", cache: false, success: function(html){ $("#results").append(html); }, }); There is a trailing comma at the end of the last key value pair (success:function). I want to know that Does Internet…
Atul Gupta
  • 75
  • 2
  • 10
-2
votes
2 answers

Remove trailing zeroes in mysql (need exact query example)

Good evening. I am trying to remove trailing zeroes from mysql data that is displayed in a table (pic.1). fragment of table (russian) My code for the query is pretty much standard: $query = "SELECT * FROM t_transport"; $result =…
-3
votes
4 answers

T-SQL how to add trailing zeros to a string varchar

My number needs to be 8 digits long, however If its less than 8 digits long I need to add trailing zeros to the it. Example: 1234 Desired result: 12340000 I tried this at first: DECLARE @YourNumber VARCHAR(8)=1234567; SELECT DISTINCT…
Rafa N
  • 1
  • 1
-3
votes
1 answer

How can I make the trailing effect when a character runs by using Unity?

Recently,I find a funny game called 《Chameleon Run》. It has very gorgeous effect when the character runs. How can I make the trailing effect like this by using Unity?Is there any plug-in?I cannot post pictures.
Aliar Fan
  • 1
  • 2
-3
votes
3 answers

How to print with append, custom separator, and suppress trailing space in Python 2?

I'm printing my output in a file with this command: print >> outfile, columns2[0],"\t",columns2[1],"\t",columns2[2] My problem is that I have a "space" at the end of the content of each column. I know some times it can be solved with…
Pol
  • 9
  • 2
-3
votes
3 answers

Trailing return type array

auto function(int i) -> int(*)[10]{ } Can anyone help me how to return a pointer to array of 10 integers using trailing return type? Any example will be helpful.
-4
votes
3 answers

How to remove currency abbreviations from right side of strings?

I have a sample array like this: [ "BTCUSD", "DASHBTC", "DOGEUSD", "LTCBTC", "LTCUSD", "SCBTC", "STEEMBTC", "WAVESBTC", "SNGLSBTC", "1STBTC", "DASHUSD", "BQXETH", "PTOYETH", "XAURETH", "BTCUSDT" ] How to get just one…
skadevz
  • 57
  • 1
  • 1
  • 7
1 2 3
14
15