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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:53:59+00:00 2026-05-26T22:53:59+00:00

ActionScript3 states the following: Note: The Math functions acos, asin, atan, atan2, cos, exp,

  • 0

ActionScript3 states the following:

Note: The Math functions acos, asin, atan, atan2, cos, exp, log, pow, sin, and sqrt may result in slightly different values depending on the algorithms used by the CPU or operating system. Flash runtimes call on the CPU (or operating system if the CPU doesn’t support floating point calculations) when performing the calculations for the listed functions, and results have shown slight variations depending upon the CPU or operating system in use.

My web application works with very large and small numbers that I suspect may see a difference depending on which machine is running it (especially with mobile devices whose processors aren’t as powerful as desktop machines’). My question is, is this behavior a function of the language?

That is, I assume some languages implement their own algorithms for the above functions, and so may be more consistent (except for differences in round-off errors introduced by the choice of processor/CPU that would exist for all languages).

Anyone know if Javascript has it’s own algorithms, or does it outsource them to the CPU/processor like ActionScript?

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

    Excerpt from the ECMAScript 5 standard, section 15.8.2

    NOTE The behaviour of the functions acos, asin, atan, atan2, cos, exp,
    log, pow, sin, sqrt, and tan is not precisely specified here except
    to require specific results for certain argument values that represent
    boundary cases of interest. For other argument values, these
    functions are intended to compute approximations to the results of
    familiar mathematical functions, but some latitude is allowed in the
    choice of approximation algorithms. The general intent is that an
    implementer should be able to use the same mathematical library for
    ECMAScript on a given hardware platform that is available to C
    programmers on that platform.

    Although the choice of algorithms is
    left to the implementation, it is recommended (but not specified by
    this standard) that implementations use the approximation algorithms
    for IEEE 754 arithmetic contained in fdlibm, the freely distributable
    mathematical library from Sun Microsystems
    (http://www.netlib.org/fdlibm)

    Essentially that means that every implementation (including every browser) can decide how they want to deal with those functions. As recommended, I presume the vast majority use fdlibm although checking that will be left as an exercise for the reader.

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

Sidebar

Related Questions

I've got the following issue with a actionscript3 project. I have a group of
In ActionScript3, how do you get a reference to an object's class?
In my ActionScript3 class, can I have a property with a getter and setter?
Both in Actionscript3 and Javascript these statements give the same result: /\S/.test(null) => true
Is there any workaround to allow actionscript3 write to file system without adobe air?
I have a function like this in actionscript3 private function uploadFile(event:MouseEvent):void { var uploader:URLRequest
What's the nicest way to convert a Vector to an Array in Actionscript3? The
I am new to Actionscript3, I need to know why I keep getting the
I'm using ActionScript3 to develop a Data Access Layer for an application another developer
I am writing a game in actionscript3 and adobe AIR for the iphone4. Is

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.