Top "Truncate" questions

Data truncation is the automatic or deliberate shortening of data.

When an int is cast to a short and truncated, how is the new value determined?

Can someone clarify what happens when an integer is cast to a short in C? I'm using Raspberry Pi, so …

c casting truncate
How do I truncate a java string to fit in a given number of bytes, once UTF-8 encoded?

How do I truncate a java String so that I know it will fit in a given number of bytes …

java string unicode utf-8 truncate
Specifying maximum printf field width for numbers (truncating if necessary)?

You can truncate strings with a printf field-width specifier: printf("%.5s", "abcdefgh"); > abcde Unfortunately it does not work for …

printf truncate format-specifiers
How do I indicate long text into a smaller fixed column with CSS?

How do I fit long text into a fixed width column where I have room for only one line of …

css string truncate
The statement did not return a result set. Java Error

I am trying to delete data from a table from java using JDBC. First I am counting the no of …

java jdbc resultset truncate
Android single line TextView without the dots

Is it possible to have a single line TextView that cuts off at the nearest pixel and does not add …

android textview truncate
Truncate Slow Query Log in MySQL

What's the safest way to truncate the MySQL slow query log (under Linux primarily, but Windows would be handy to …

mysql logging truncate
Truncate a string without ending in the middle of a word

I am looking for a way to truncate a string in Python that will not cut off the string in …

python truncate
How to truncate a file in c#?

I am writing actions done by the program in C# into a file by using Trace.Writeln() function. But the …

c# .net file truncate
MySQL truncates concatenated result of a GROUP_CONCAT function

I've created a view which uses GROUP_CONCAT to concatenate results from a query on products column with data type …

mysql view types truncate