Skip to main content
0 votes
2 answers
66 views

How to auto-adjust the width of an input field based on character length of the decimal displayed within?

I'm working on a very simple program that takes a user-specified number (can be an integer or a float of any length) and performs one specific multiplication operation on that number. The program then ...
jasper's user avatar
  • 1
0 votes
0 answers
71 views

length greater than 32767 characters Oracle

I have the following code: declare v_output varchar2(32767); begin v_output := shell('ls -ltr /opt/ibm/'); dbms_output.put_line(v_output); end; It throws error as the output is more than 32767 and ...
Amir's user avatar
  • 113
2 votes
2 answers
66 views

What Excel function can I use to calculate the length of a date time string?

I am trying to calculate the length of the date-time string in a cell In Microsoft Excel I am using the LEN function to calculate the length of the date time string in cell C2. The value in C2 is 2017-...
Wosley Erving's user avatar
2 votes
0 answers
72 views

Inconsistent behavior of EXCEL formula functions TYPE and COUNTA depending on text length

While writing some custom lambdas in an Excel workbook I had inconsistent results (and even Excel crashes, with a recursive lambda) depending on the length of the input text. I was able to trace down ...
Djé's user avatar
  • 61
-1 votes
1 answer
85 views

How to count string's length in Python (if the string includes character escaping)? [closed]

There is a string x = '1a\u0398\t\u03B43s' How to count its length only using code? I mean to add before the string r manually is no good (x = r'1a\u0398\t\u03B43s'). Have tried this solution, but ...
Grua Sur's user avatar
1 vote
1 answer
331 views

Length of unicode emoji varies

I build a webapp and one specific user uses a chef-emoji (https://emojipedia.org/de/koch#technical) in his username. At some point in my code I need to get the length of his username string. I noticed ...
Bisasam's user avatar
  • 73
0 votes
1 answer
815 views

In Entity Framework how should I limit string length to no greater than 12000 characters

I tried the obvious... [StringLength(12000)] public string Instructions { get; set; } ...(also tried MaxLength) but when I run add-migration I get empty Up() and Down() methods. The only impact of ...
blogofsongs's user avatar
  • 2,567
2 votes
1 answer
93 views

compareTo() method on integer (Java 8, Comparable, Comparator, sorting, String)

We can apply comparable & comparator both on integers, as like below: List<Integer> intList1 = Arrays.asList(1,9,4,8,2,3,7,4,5); Optional<Integer> val1 = intList1.stream().sorted((a, b)...
Ajit A Ankalle's user avatar
0 votes
1 answer
48 views

how to select rows that are x characters shorter than longest

I have a study assignment and I've been banging my head in the wall for at least a day now. I'm totally new to this and just learning the basics. This is my assignment: Use union to combine these ...
WaltsQ's user avatar
  • 1
0 votes
1 answer
64 views

How i can check the full length of number even if it includes zeros?

i want to check the length of x that includes number like (600,000) it always returns length of 5 not 6. i think R doesn't count if they more than 4 zeros like above. i want know how to count the full ...
Hassan Elleithy's user avatar
0 votes
2 answers
303 views

In Tcl, why is the string length of an empty string 1, not 0?

In tclsh, first make an empty string: set a [] Then run the following command: string length a It returns 1. I'm expecting a return value of 0 for the length of an empty string, because it is defined ...
zzzhhh's user avatar
  • 73
0 votes
2 answers
41 views

StringLengthAttribute does not enforce length

I have a property with StringLength attribute, but I can assign a string of any length to this property. I created the following test program in VB.NET 4.7 Framework: Imports System.ComponentModel....
Alex's user avatar
  • 561
-1 votes
1 answer
207 views

C++ wrong std::string length when using constructor from "empty" char array

I tested this code snippet on different compilers but always got the same result, but I just can't understand why. unsigned char buffer[0x4000] = {0}; string strText((char*)buffer, 0x4000); cout <...
Alex B.'s user avatar
  • 77
3 votes
1 answer
188 views

Strlen function giving wrong length when there are non-english characters in string

I have a program that accepts non-english characters also as an input field. Because we use strlen, it has failed to give expected length while calculating the length of the string when there is a non-...
Bover's user avatar
  • 39
0 votes
1 answer
47 views

How to get terminating length in length of string in java? [closed]

As the strings in C/C++ are terminated with the null character '\0', the strings in Java are terminated with length in length. How to get this length of string without using any in-built function in ...
Shubham Dey's user avatar

15 30 50 per page
1
2 3 4 5
71