File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Forcing a long to NOT be in scientific notation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Forcing a long to NOT be in scientific notation " Watch "Forcing a long to NOT be in scientific notation " New topic
Author

Forcing a long to NOT be in scientific notation

Dale DeMott
Ranch Hand

Joined: Nov 02, 2000
Posts: 514
It seems as though when we are using the Date class and printing out the miniseconds that represents the current date, the javascript parsing engine is converting our number into scientific notation. (E Notation) Is there a way to prevent this from happening? Or if I must.. convert it back. It seems as though the Rhino javascript parsing engine (Netscape Javascript) used with JUnit is forcing this issue to happen. This doesn't happen just with the IE Javascript parsing engine though so don't test it with IE.

[ July 20, 2004: Message edited by: Dale DeMott ]
[ July 21, 2004: Message edited by: Dale DeMott ]

By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Forcing a long to NOT be in scientific notation
 
Similar Threads
Eclipse and App Servers
getting the current quarter
Using a jar inside my application
Search Engine Submitting Problem
uni code