Questions tagged [long-integer]

A long integer is an integer number, typically twice the size of a standard integer. It is represented by the keyword 'long' in several programming languages.

A long integer is an integer number, typically twice the size of a standard integer. It is represented by the keyword 'long' in several programming languages.

http://en.wikipedia.org/wiki/Integer_(computer_science)#Long_integer

2408 questions
0
votes
0 answers

error: cannot find symbol while running javac to compile in ubuntu terminal for Long.parseLong("string")

This is a program which demonstrate the working of parseLong When i run this in bluej it gave me output as as given below But when i ran this in console in ubuntu terminal by compiling using the command javac it gave me compilation error as given…
Midhun Raj
  • 925
  • 2
  • 7
  • 21
0
votes
0 answers

How to add a long or double to this java statement?

public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Please enter your first number: "); int num1 = input.nextInt(); System.out.println("Please enter your second number: "); …
Jayz
  • 1
0
votes
0 answers

how to convert sql long format to wide format

I have the following data input from sql query Basiclly, the original query returns 365 rows of 24 hours dat for 1000 IDs. As the result, I'd like to put all 365 x 24 data into one row for each ID. How should I do it?
Cu Buffalo
  • 59
  • 2
0
votes
0 answers

Why if I return primitive long type class in getColumnClass sorting in jtable doesn't work?

I have a problem with sorting primitive long in JTable. I have a class, this class extends AbstractTableModel and overrides method getColumnClass, here is the code of this method: public Class getColumnClass(int columnIndex) { return…
0
votes
0 answers

how to handle long text in gridjs column

Is there a way to handle long text ion column like ellipsis.js does? The column has 150 words, it should only show 50-60, and then show entire when hovered over with mouse.
0
votes
0 answers

Get Lat/Long from City Auto Complete

I am using a plugin that provides a location field type (City/State/Country, etc) that uses the Google Maps API to autocomplete the field. I am using only the City field. It works as it should: start typing the city and the dropdown fills with…
Quint Rahaman
  • 117
  • 2
  • 10
0
votes
2 answers

How do I convert a SQL Server datetime to a C# int64 in ADO.NET?

I would like to read from a datetime field in SQL Server and store it as a int64, as datetime is stored as 64 bits in SQL Server. Would I do something similar to this? DateTime dt = sqlDataReader.GetDateTime(0); byte[] bt =…
michael
  • 11
  • 2
0
votes
1 answer

R dplyr long dataframe factor level summarisation to provide counts, group totals and percentages in one table

This question is about prepping data for ggplot I have a long dataframe of survey questions and option responses (the real one is 76,931 rows) of the form: df <- data.frame( Question = c( "Qone", "Qone", "Qone", "Qtwo", "Qtwo", "Qthree",…
Peter King
  • 91
  • 8
0
votes
2 answers

Index out bounds exception when storing time in milliseconds [Android]

I am storing time in Milliseconds using a Material Time Picker Dialog. The problem is if I choose a time instance which is like a single valued hour (between 1-9) or single valued minute(1-9) then I am able to get the value in milliseconds. But if I…
oyeraghib
  • 878
  • 3
  • 8
  • 26
0
votes
0 answers

Loss of precision of a long number elasticsearch

I have a set of documents within my index in which I have an "id" field which during automatic insertion was mapped to type "long". The problem is that when I go to view the documents in JSON format, or export them from ES with elasticdump the value…
ADD_96
  • 25
  • 4
0
votes
1 answer

Kotlin convertion to and from the byte array

Recently I'm trying to make a byte array from an object of class containing a few variables of primitive types. The problem has began with saving a double to the 8-byte format. After getting it back retrieved value isn't the same but kind of very…
Giebut
  • 342
  • 2
  • 13
0
votes
1 answer

Getting 0 for Long number modulus with

getting 0 when appiling modulus for the return value class Solution { long ans = 0; long m = 1000000007L; long[][][] dp; public int findPaths(int m, int n, int maxMove, int startRow, int startColumn) { dp = new long[m+2][n+2][maxMove+1]; …
0
votes
4 answers

C stroull equivalent in Java

I have a Objective C code,which I have to translate in Java,but I have a little problem with converting one line. In Objective C code I have : UInt64 iz = strtoull(s,&s1,16);. I was searching over the internet abotu strtoull and I find this…
Android-Droid
  • 14,365
  • 41
  • 114
  • 185
0
votes
1 answer

Infinite Loop using a Long data type

Im currently doing some project euler problems and Im getting an infinite loop for the For Loop using Long data types. I normally use Integers and dont have much experience with this data type.? Could anyone advise how to solve this? The Question…
0
votes
1 answer

How do i get an input of time in milliseconds?

private long START_TIME_IN_MILLIS; private long TimeLeftInMillis = START_TIME_IN_MILLIS; i have declared these variables, which is meant to store an input from an EditText, but in my OnCreateView i have this line START_TIME_IN_MILLIS =…