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
1
vote
2 answers

Excel autofilter - doesn't find trailing 0s

I have 2 sheets, one the user inputs data used as search criteria and the second sheet is the data being searched. Both my search value cell and column are formatted as a number with 4 decimal places: 0.0000 the user enters value into C6 want to…
SamwiseVB
  • 51
  • 8
1
vote
1 answer

How do trail_points and trail_offset work with Takeprofit and Stoploss

I'm new to Pine Scripts and I'm trying to write a Strategy to test a new Indicator, the below is my code if Up and (downbefore == true) strategy.entry("buy",strategy.long,1000000) strategy.exit("Exit buy", from_entry="buy", profit = 150000,…
1
vote
2 answers

Why Java BigDecimal stripTrailingZeros leads to scientific notation

When you use stripTrailingZeros for number ending with zero like 10, 50, etc. BigDecimal.toString() method decided to use scientific notation ( instead 50 prints 5E+1) Here is example code tested with java 17: public static void main(String[]…
gshock
  • 584
  • 7
  • 18
1
vote
2 answers

Regular expression to remove HTML line breaks at end of string

I'm trying to remove all trailing HTML line breaks from a string., e.g.
or
etc. So this:
remove HTML breaks after this string







Must become this:
remove HTML breaks after this…
Adam
  • 6,041
  • 36
  • 120
  • 208
1
vote
0 answers

Pine Script - 3 Take profits, 1 SL and 1 Trailing Stop Calculated by Price

I have read a dozen posts and tried many things in TV, but I can't seem to understand how PineScript works regarding strategy exits. I have an indicator-calculated-Price for each Level I want to use as an Exit (1 stoploss, 3 take profits and a…
Kabott1
  • 11
  • 1
1
vote
2 answers

Oracle SQL remove trailing new line

I'm creating an ssrs form in oracle sql on which I need to list an address. New lines have to remain in the address however I can't find the way of removing new lines at the end of the address. Example of what I have: 10 Donkey Kong, London, XX1…
Fux Molder
  • 23
  • 5
1
vote
0 answers

How can I make the trailing sell move up with price and not go down when price reverse without using the high of the current candle in PineScript

How can I make the trailing sell move up with price and not go down when price reverse without using the high of the current candle in PineScript //@version=4 study("Trailing Sell ",…
1
vote
1 answer

Postgresql drops trailing zeroes when loading time with milliseconds from csv

I am importing a csv file into a Postgres Table. The file has the following format: 2019/12/13, 14:56:02, 3172.50, 3174.25, 3172.50, 3172.50, 1, 1, 1, 0 The table is defined as: CREATE TABLE tablename ( date date, time time, v1 numeric, v2…
WhiteStork
  • 385
  • 1
  • 15
1
vote
0 answers

Json.net Parse function deserialize Json String remove timestamp trailing zero

When calling json.net Parse method to deserialize json array string: Either: JArray.Parse(jsonArrayString) Or JObject.Parse(jsonArrayString with root node) It always remove the trailing zero in timestamp milliseconds, e.g. data: "TimeStamp":…
OscarZ
  • 51
  • 4
1
vote
2 answers

How i ca fix this error (A RenderFlex overflowed by 104 pixels on the bottom.)

enter image description here This (Trailing inside ListTile) In Flutter trailing: Column( children: [ new IconButton(icon: Icon(Icons.arrow_drop_up), onPressed: (){}), Text("Hello"), …
1
vote
3 answers

Remove trailing items of two lists if values at the same index are equal

I want to accomplish the following: I have two lists a and b which are guaranteed to be of size 5. I now want to remove values from the end of both lists that are equal at the same indices / when zipped/transposed. As an example of input and…
Kevin Cruijssen
  • 9,153
  • 9
  • 61
  • 135
1
vote
0 answers

sitemap URL without trailing slash 404 error

I have wordpress website that I installed google XML Plugin. all urls with and without trailing slash works properly. but for sitemap.xml without trailing slash browser return 404 error. I modified permalinks, .htaccess ,... but it doesn't…
A. Mohebbi
  • 11
  • 2
1
vote
0 answers

Trailing Slash not working on Load Balancer (AWS elb)

The following command is working perfectly in .htaccess Magento 2. RewriteCond %{THE_REQUEST} \ /(.+).html/ RewriteRule ^ /%1.html [L,R=301] But when we enable Load balancer (AWS ELB) it stops working. Please help in this regard.
1
vote
1 answer

Removing trailing slash at the end of file names in a folder

Removing trailing slash at the end of file names in a folder http://www.example.com/directory/index.php/ should return to http://www.example.com/directory/index.php (that is without trailing slash at the end - it can be any file type like html,…
AMLU
  • 19
  • 1
1
vote
1 answer

Trailing whitespace in filename

I tried using a batch-script from this answer to color some text in the console. Unfortunately I had some unintended behaviour, using ´3 :s as string for the call, which created a file named: "┬┤3 ", with a trailing whitespace. Windows (10)…
Skandix
  • 1,916
  • 6
  • 27
  • 36