Advertisement
Ankhwatcher

Long to Double And Back Again

Mar 28th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1.  long Input = 1364410800000;
  2. Horizontal Label Value 0:-Double 1.3644108E12
  3. Horizontal Label Value 0:-String 1.3644108E12
  4. Horizontal Label Value 0:-Long 4788411430904266752
  5.  
  6. double output = Long.valueOf(Input).doubleValue()
  7. Log.d(this.getClass().toString(), "Horizontal Label Value " + i + ":-Double " + output);
  8. Log.d(this.getClass().toString(), "Horizontal Label Value " + i + ":-String " + Double.toString(output));
  9. Log.d(this.getClass().toString(), "Horizontal Label Value " + i + ":-Long " + Double.doubleToLongBits(output));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement