This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Forcing a long to NOT be in scientific notation
 
It's not a secret anymore!