You could simply do :
double d = (double)15552451L;
Or you could get double from Long object as :
Long l = new Long(15552451L); double d = l.doubleValue();
Related Posts:
- How do I convert a String to an int in Java?
- How to convert a char to a String?
- Convert String to double in Java
- How can I convert a char to int in Java? [duplicate]
- Create ArrayList from array
- Convert an integer to an array of characters : java
- Converting Hexadecimal String to Decimal Integer
- Convert double to Int, rounded down
- Converting from byte to int in Java
- How do I “decompile” Java class files? [closed]
- How do I compare strings in Java?
- Could not reserve enough space for object heap
- What does “Could not find or load main class” mean?
- Exception in thread “main” java.util.NoSuchElementException
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- What’s the simplest way to print a Java array?
- javax vs java package
- What is a stack trace, and how can I use it to debug my application errors?
- How to fix “A JNI error has occurred, please check your installation.”
- Java Runtime Environment not found error when I open an application
- What is an illegal reflective access?
- Convert Set to List without creating new List
- Java optional parameters
- how to iterate in List
- > in java and set their values as we do in a normal int a[i][j] matrix type [duplicate]
- Java – Best way to print 2D array?
- How to update a value, given a key in a hashmap?
- How to schedule a periodic task in Java?
- typeof in Java 8
- Switch on Enum in Java
- error upon assigning Layout: BoxLayout can’t be shared
- Why do this() and super() have to be the first statement in a constructor?
- Else without if
- Keytool is not recognized as an internal or external command
- What’s the difference between import java.util.*; and import java.util.stream;?
- Collections sort(List
,Comparator super T>) method example - Login Application with 1 stage and multiple scene in JavaFX
- Handle mouse event anywhere with JavaFX
- restart console on Minecraft Server
- SSL peer shut down incorrectly in Java
- Java split string to array
- What is the meaning of “%d:%02d” in `printf`?
- Type List vs type ArrayList in Java
- Maven error : Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
- Polymorphism vs Overriding vs Overloading
- Difference between Static methods and Instance methods
- Java The method is undefined for this type
- Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio
- Javamail Could not convert socket to TLS GMail
- java.net.SocketException: Connection reset
- Cannot instantiate the type Queue. Why is this?
- Pause the timer and then continue it
- Converting String Array to an Integer Array
- How to fix “unsupported class file major version 60” in IntelliJ?
- Resize an Array while keeping current elements in Java?
- How to make an array of arrays in Java
- Instantiating object of type parameter
- Syntax error on token(s), misplaced construct(s)
- JAVA Variable declaration not allowed here
- How to check if object is null or not except == null
- How do I check if the user is pressing a key?
- How to check if object is null or not except == null
- Comparing strings by their alphabetical order
- exposed beyond app through ClipData.Item.getUri
- Java – get the current class name?
- Cannot resolve symbol ‘button’ -Android Studio
- Checking to see if array is full
- Tomcat 404 error: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists
- “The import org.springframework cannot be resolved.”
- How to synchronize or lock upon variables in Java?
- why f is placed after float values?
- Syntax error on token “;”, { expected after this token in Random string creator
- Chrome Error: You are using an unsupported command-line flag: –ignore-certifcate-errors. Stability and security will suffer
- Printing char arrays in Java
- How to change already compiled .class file without decompile?
- Java: How To Call Non Static Method From Main Method?
- What does idempotent method mean and what are the side effects in case of calling close method of java.lang.AutoCloseable?
- How to “wait” a Thread in Android
- How to use regex in String.contains() method in Java
- Error: Module not specified (IntelliJ IDEA)
- make a JLabel wrap it’s text by setting a max width
- incompatible types: void cannot be converted to int [duplicate]
- Long cannot be dereferenced
- Align printf output in Java
- How do you create a REST client for Java?
- Calculate Average Java
- Official reasons for “Software caused connection abort: socket write error”
- Multiple assignment at once in java
- -XX:MaxPermSize with or without -XX:PermSize
- Decompile .smali files on an APK [duplicate]
- How to get rows and columns count of a 2D array in Java?
- Using while loop as input validation [duplicate]
- java -version and javac -version showing different versions
- when spring boot startup,throw out the “method names must be tokens” exception
- How to get javax.comm API?
- how to convert exe file to .jar file? [duplicate]
- How to print a table of information in Java
- set background color: Android
- Class Declarations for temperature program in Java
- Spring Boot – Cannot determine embedded database driver class for database type NONE
- Convert double to float in Java