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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:16:01+00:00 2026-06-15T12:16:01+00:00

I have a weird problem, when using math expression in ng-bind the result are

  • 0

I have a weird problem, when using math expression in ng-bind the result are unexpected. Based on my experiment, the problem only happen when the first part of summand are 15 above and second part are 1.112 only.

ng-bind=”sum = 16 + 1.112″ ng-model=”sum” value=”16.112000000000002″

  • 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-06-15T12:16:02+00:00Added an answer on June 15, 2026 at 12:16 pm

    That’s a standard floating point rounding issue. The floating point numbers are represented in base 2, so most finite decimal fractions have no exact representation as (binary) floating point numbers. JavaScript uses IEEE754 double precision numbers with 53 bits of precision, the closest number to 1.112 is then

    1.1120000000000000994759830064140260219573974609375
    

    adding 15 to that needs more than 53 bits to represent the significand, so it must be rounded, the result is

    16.11200000000000187583282240666449069976806640625
    

    and that is larger than the closest IEEE754 double precision number to 16.112, which is

    16.111999999999998323119143606163561344146728515625
    

    and thus the first nonzero digit after the 16.112 is displayed to distinguish it from the closest number to 16.112

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

Sidebar

Related Questions

I have a very weird problem. This ONLY affects Firefox on Mac, using the
I have a weird problem. I'm using pscp.exe from within a C# program (with
I'm fairly new to using MSSQL and have run into a weird problem. Given
I'm using VS10 and C# and I've encountered a weird problem. I have 2
I have a weird problem with defining a mpi_type_contiguous and using mpi_gatherv later on.
I'm using SimpleModal plugin for Jquery and I have a weird problem with Firefox
I have a very weird problem while trying to pass and SQL query using
I have a weird Chrome problem. I'm using the following code and style to
I have a really weird problem with a UIWebView. I'm using it to login
I have a very weird problem using OpenMP in my C++ code: void update(double

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.