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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:49:38+00:00 2026-05-23T08:49:38+00:00

What is the guaranteed accuracy of multiplication operator for double values in java? For

  • 0

What is the guaranteed accuracy of multiplication operator for double values in java?

For example, 2.2 * 100 is 220.00000000000003, but 220 is a double number. 220.00000000000003 is the next double after 220.

  • 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-23T08:49:39+00:00Added an answer on May 23, 2026 at 8:49 am

    The multiplication is working fine, but 2.2 cannot be represented exactly as a double. The closest doubles are:

    • 2.199999999999999733 (0x4001999999999999)
    • 2.200000000000000177 (0x400199999999999a)

    Some software will print the latter value as 2.2, but that doesn’t mean it’s exact. It just means it’s treated as “close enough”.

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

Sidebar

Related Questions

A Page.PreRender event is guaranteed to be fired after Page.Load event is fired. But
In C# is it guaranteed that expressions are evaluated left to right? For example:
Is it guaranteed that the numeric values for an Enum with only uninitialized values
Are the values returned by Javascript's getElementsByName(...) guaranteed to be in the same order
I'm wondering if it's guaranteed that in a Java program, the boolean expression on
I need to create a timestamp (in milliseconds) in Java that is guaranteed to
Is there a guaranteed sequence of execution of the following java code: int i
I am guaranteed to have a variable-length array with an odd number of elements.
Is the Java char type guaranteed to be stored in any particular encoding? Edit:
Is applicationDidFinishLaunching guaranteed to be called after application is updated? (when user first launches

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.