Truncation is the term for limiting the number of digits right of the decimal point, by discarding the least significant ones.
Questions tagged [truncated]
256 questions
122
votes
10 answers
Error Code 1292 - Truncated incorrect DOUBLE value - Mysql
I am not sure what is this error!
#1292 - Truncated incorrect DOUBLE value:
I don't have double value field or data!
I have wasted a whole hour trying to figure this out!
here is my query
INSERT INTO call_managment_system.contact_numbers
…

Mike
- 2,735
- 11
- 44
- 68
56
votes
3 answers
list output truncated - How to expand listed variables with str() in R
I have a data.frame df with 600+ variables. I'm writing a function that automates the creation of columns and need to visually check them once.
The str function provides a good summary:
str(df)
'data.frame': 29 obs. of 602 variables:
$…

jpinelo
- 1,414
- 5
- 16
- 28
31
votes
9 answers
How can I get the full string of PHP’s getTraceAsString()?
I'm using getTraceAsString() to get a stack trace but the string is being truncated for some reason.
Example, an exception is thrown and I log the string using:
catch (SoapFault $e) {
error_log( $e->getTraceAsString() )
}
The string thats prints…

User
- 62,498
- 72
- 186
- 247
28
votes
3 answers
How to prevent truncating of string in unit test python
I am doing a unit test in Python for my program and I would like to do an assertEquals test.
My code looks something like this:
class UnitTest(unittest.TestCase):
def test_parser(self):
self.assertEquals(parser,"some long string",…

decemberrobot
- 451
- 2
- 9
- 20
25
votes
2 answers
Google Chart Tools truncating y axis labels
Working with a Google bar chart, here is what I got:
Here my custom options
var options = {
width: 500, height: 240,
legend : 'none',
vAxis:{title:'Answers',textStyle:{color: '#005500',fontSize: '12', paddingRight: '100',marginRight:…

Junior Mayhé
- 16,144
- 26
- 115
- 161
18
votes
3 answers
C++ string too big, trailing characters truncated
I am making a program that when started, will write a predefined string into a file. The file is about 5 mb in size so filling the string with 5 mb of data in hex is a big variable. When I try to compile it, I get an error saying the string is too…

mrg95
- 2,371
- 11
- 46
- 89
9
votes
5 answers
Merge trunk into branch with SVN: "Secure Connection Truncated"
after trying to merge changes to an svn trunk back to the branch with the following command:
../branches/myBranch$ svn merge -r 94:171 https://.../trunk --dry-run
I get the following error from SVN:
svn: REPORT of…

aheld
- 313
- 1
- 5
- 11
7
votes
0 answers
requests.iter_content() thinks file is complete but it's not
This question differs from others that I have seen regarding requests.iter_content() in that requests seems to think that it has successfully reached the end of the file I am iterating over. In reality the file has been truncated and is incomplete.…

Shrout1
- 2,497
- 4
- 42
- 65
7
votes
1 answer
Truncated Backpropagation Through Time (BPTT) in Pytorch
In pytorch, I train a RNN/GRU/LSTM network by starting the Backpropagation (Through Time) with :
loss.backward()
When the sequence is long, I'd like to do a Truncated Backpropagation Through Time instead of a normal Backpropagation Through Time…

u2gilles
- 6,888
- 7
- 51
- 75
7
votes
1 answer
Posts made using the Javascript SDK feed dialog are small and truncated; don't match preview
I'm trying to update my stream.publish code to use the feed dialog in the javascript SDK, but the resulting facebook posts are small and ugly. More annoying is that the posts on facebook don't match the preview on my site.
Here's my code:
function…

nvioli
- 4,137
- 3
- 22
- 38
6
votes
1 answer
How to add duration to metadata of files recorder by MediaRecorder
I am recording video by MediaRecorder in Chrome. My code is similar to an example from MediaStream docs. I am receiving videos that do not have Duration metadata.
I compared it by mediainfo with exemplary webm file…

Daniel
- 7,684
- 7
- 52
- 76
6
votes
2 answers
`Math.trunc` vs `|0` vs `<<0` vs `>>0` vs `&-1` vs `^0`
I have just found that in ES6 there's a new math method: Math.trunc.
I have read its description in MDN article, and it sounds like using |0.
Moreover, <<0, >>0, &-1, ^0 also do similar things (thanks @kojiro & @Bergi).
After some tests, it seems…

Oriol
- 274,082
- 63
- 437
- 513
4
votes
1 answer
Query truncated at 999 character
I have a peculiar problem with Postgres and PHP.
I just set-up new server and although code works fine on the old server, on a new server some lengthy queries are getting truncated at 999 character.
Same page runs fine on the old one and on the new…

RandomWhiteTrash
- 3,974
- 5
- 29
- 42
4
votes
1 answer
wpf datepicker shows truncated month
This doesn't seem to always be the case, but often the datepicker month label is truncated when expanded to select dates : (while the datepicker is inserted in a grid with "*" space).
Has anyone encountered this as well ? If so how can we solve…

fabien
- 2,041
- 1
- 16
- 19
4
votes
0 answers
How to insert a Text at the end of truncated multile text? React Native
I'd like to understand how to add some Text/Button, etc. and the end of ellipsed text last line when we have a truncated multiline text
for example:
Some cool text we can read here
and feel very positive emotions
but there is a bit ...[Show…

Velidan
- 5,526
- 10
- 48
- 86