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

The Archive Base Latest Questions

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

I am trying to multiply to number type variables: The code is something like

  • 0

I am trying to multiply to number type variables: The code is something like this::

trace(6.60*6);// !=39.6
var a:Number=6.6;
var b:Number=6;
trace(a*b);// !=39.6

it is not equal to 39.6 in Action Script 3.0 .. instead showing 39.5999999994…

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

    This is a by product of IEEE standard of floating point arithmetic. If you want the real reason why check this paper:

    http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html

    Most of this comes from Actionscript’s Javascript roots, and in Javascript everything is floating point. There is no diference between ints and floating point math so strange errors crop up that don’t crop up in other languages, but they would if you alway used floats.

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

Sidebar

Related Questions

I'm trying to write a code that converts a number to binary, and this
I am trying to multiply a double value by -1 to get the negative
I am trying to match multiple CSS style code blocks in a HTML document.
Trying to understand why this doesn't work. I keep getting the following errors: left
I'm trying to print out a number of posts from multiple post types. However,
I am trying to clear the console in C++. I know printing a number
I am relatively new to Java and while trying out some code came across
I am trying to understand how the linux syscall sched_setaffinity() works. This is a
I'm trying to parse a method signature that is in this format: 'function_name(foo=<str>, bar=<array>)'
I'm trying to slice a list (call this input list & it contains Java

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.