Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3967182
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:41:23+00:00 2026-05-20T03:41:23+00:00

I am aware of the various posts floating out there with regards to the

  • 0

I am aware of the various posts floating out there with regards to the same issue.

Mine its a little bit different and it might be a little obvious, but I will need your comments.

I am currently using Hibernate Search and Lucene to Index entity properties.

I have a bunch of Double properties on my entities.

These entities using the default Bridges from Lucene (Bridge i.e the one in charge converting LongToString and StringToLong) are giving me troubles once the scientific notation starts to be used.

I am trying to show on DataTables on a .xhtml Credit and Debit amounts, their lenght can be as long as 18 digits, and their DataBase (DB2) type is BIGINT.

  1. I can not change the DataBase type
    to Long for example.
  2. I can not change either the Double
    type attributes of my entities
    either to for example Long

So whats the question?
Is there a way from a String say “1234567890” to retrieve a Double whose format is 1234567890 and not 1.23456789E9 as it is being done by default by Double.parseDouble(FormattedString)?

PD: I am aware of the existance of DecimalFormat, however take into account using this formater will give me a String formated correctly say : “#######.E0” but what I really need is a Double with such format, however when doing Double.parseDouble(FormattedString) I will loose such format.

Hope I was clear and thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:41:23+00:00Added an answer on May 20, 2026 at 3:41 am

    Is there a way from a String say “1234567890” to retrieve a Double whose value is 1234567890 and not 1.23456789E9 as it is being done by default by Double.parseDouble(FormattedString)?

    Your question doesn’t really make sense. 1234567890 is the same value as 1.23456789E9 and a double represents one of them, if and only if it also represents the other.

    I am aware of the existance of DecimalFormat, however take into account using this formater will give me a String formated correctly say : “#######.E0” but what I really need is a Double with such format, however when doing Double.parseDouble(FormatedString) I will loose such format.

    No, there is no way to construct a Double so that it is displayed in a certain way. The toString method for Double is what it is, and it can’t be changed.

    The only thing you can do is to for instance use DecimalFormat or String.format but as you’ve noted, you’ll always end up with a String.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a description of the various errors that NSXMLParser can return? I'm aware
I have seen various posted about this question so am aware some answers to
I'm aware of the different event models in JavaScript (the WC3 model versus the
I'm aware of this question here but I have a slightly different question. If
I'm aware of various image crossfade plugins, but i need to crossfade text. Like,
I'm a bit confused by JDB. Being fairly good at using GDB, I'm aware
I'm aware that this question has appeared in various forms before, but none of
I know there are various known issues with the M2eclipse plugin and I guess
I know there are various ways to limit how long a task runs under
As we know Android coming with various device which having different Features, Resolution, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.