  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Problem Generating ID | Problem Generating ID 2003-08-12 - By N.B.Bopanna
Back Hi All, I am generating a ID to use as primary key in my table with the follwing code.
double regno = (double)System.currentTimeMillis() * Math.random();
I am getting the result in exponential form (5.797797409006919E11) .
But I do not want the result in exponential form, but like for eg something like 57977974090069.3219 is there a way out?
thanks Bopanna
Power of Global Information Access... .. Browser based RCS products. -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- --- Visit us at http://www.rcssoft.com/ for an online DEMO of all our web based products. User ID and Password will be available on request. PAYMAN - Payroll Management System TRAXX - Asset Management and Tracking System eSHOP - Online Information and Ordering System SALES STREAM - Sales Force Automation CARE - Call Management System DATA MINER - Query Builder and Report Generator Please write to enquiry@(protected) or reply to this mail for further details.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |