aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
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: 515
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://aspose.com/file-tools
 
subject: Forcing a long to NOT be in scientific notation