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 7525885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:40:39+00:00 2026-05-30T03:40:39+00:00

How to convert BigDecimal object to a String representation that uses the exponential form?

  • 0

How to convert BigDecimal object to a String representation that uses the exponential form? something like: 3.134e67? I looked into the API and I found toEngineeringString() but it does not give me what I want.

  • 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-30T03:40:40+00:00Added an answer on May 30, 2026 at 3:40 am

    Have you read the NumberFormat documentation, this is from DecimalFormat:
    See: http://docs.oracle.com/javase/1.4.2/docs/api/java/text/DecimalFormat.html

    Scientific Notation

    Numbers in scientific notation are expressed as the product of a
    mantissa and a power of ten, for example, 1234 can be expressed as
    1.234 x 10^3. The mantissa is often in the range 1.0 <= x < 10.0, but it need not be. DecimalFormat can be instructed to format and parse
    scientific notation only via a pattern; there is currently no factory
    method that creates a scientific notation format. In a pattern, the
    exponent character immediately followed by one or more digit
    characters indicates scientific notation. Example: “0.###E0” formats
    the number 1234 as “1.234E3”.

    • The number of digit characters after the exponent character gives the minimum exponent digit count. There is no maximum. Negative
      exponents are formatted using the localized minus sign, not the prefix
      and suffix from the pattern. This allows patterns such as “0.###E0
      m/s”.

    • The minimum and maximum number of integer digits are interpreted
      together:

      • If the maximum number of integer digits is greater than their minimum
        number and greater than 1, it forces the exponent to be a multiple of
        the maximum number of integer digits, and the minimum number of
        integer digits to be interpreted as 1. The most common use of this is
        to generate engineering notation, in which the exponent is a multiple
        of three, e.g., “##0.#####E0”. Using this pattern, the number 12345
        formats to “12.345E3”, and 123456 formats to “123.456E3”.

      • Otherwise, the minimum number of integer digits is achieved by
        adjusting the exponent. Example: 0.00123 formatted with “00.###E0”
        yields “12.3E-4”.

    • The number of significant digits in the mantissa is the sum of the
      minimum integer and maximum fraction digits, and is unaffected by the
      maximum integer digits. For example, 12345 formatted with “##0.##E0”
      is “12.3E3”. To show all digits, set the significant digits count to
      zero. The number of significant digits does not affect parsing.

    • Exponential patterns may not contain grouping separators.

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

Sidebar

Related Questions

I have to convert an incoming String field into a BigDecimal field that would
how convert string into Unicode string in Perl. I am looking some attribute in
Convert.ToDouble Method (String) converts the specified String representation of a number to an equivalent
I have this little crazy method that converts BigDecimal values into nice and readable
I would like to convert a possibly Decimal value prefixed with currency symbol into
I need to convert array of Objects into a Long/Integer.. Problem is that those
convert datetime format yyyy-mm-dd hh:mm:ss (Might be a string) into UTC, Looking into DateTime
I have a type converter which converts a string into an object and vice
Convert the grammar below into Chomsky Normal Form. Give all the intermediate steps. S
I need to convert latitude/longitude coordinates into Easting/Northing coordinates in the Alberta 10 TM

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.