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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:25:50+00:00 2026-05-27T22:25:50+00:00

I was reading about data types in C. I found the range of long

  • 0

I was reading about data types in C. I found the range of long double is more than that of double in java. For very huge number we can use long double in C. If I want to store the same number in java what we have to do? which datatype we can use?

double in java takes 8 bytes(64 bits) IEEE 754. it Covers a range from
4.94065645841246544e-324d to 1.79769313486231570e+308d (positive or negative).

longdouble in c takes 10 bytes (80 bits)

Can anyone tell me is there any replacement of longdouble in java

  • 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-27T22:25:51+00:00Added an answer on May 27, 2026 at 10:25 pm

    Though not a replacement, you can use java.lang.math.BigDecimal.You can roughly store billion of digits until you run out of memory. Its an arbitrary precision class, it will get as large as you’d like until your computer runs out of memory.

    As per the documentation of BigDecimal:

    Immutable, arbitrary-precision signed decimal numbers. A BigDecimal
    consists of an arbitrary precision integer unscaled value and a
    non-negative 32-bit integer scale, which represents the number of
    digits to the right of the decimal point. The number represented by
    the BigDecimal is (unscaledValue/10scale). BigDecimal provides
    operations for basic arithmetic, scale manipulation, comparison,
    hashing, and format conversion.

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

Sidebar

Related Questions

Reading Real world Haskell i found some intresting question about data types: This pattern
I was reading about self-referential has_many :through data situations today, because I'm trying to
We have a bunch of data on S3 (images) but just started reading about
I am reading an article in IEEE Computer magazine about using data mining on
Reading about the G.729 codec , I found this interesting tidbit about Comfort Noise
When reading about pipes in Advanced Programming in the UNIX Environment, I noticed that
In reading about C#, I have come across the terms data transfer type and
When reading data from the Input file I noticed that the ¥ symbom was
I'm reading some data over a socket. The integral data types are no trouble,
In a book on Core Java, I found this excerpt : Think about the

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.