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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:34:24+00:00 2026-05-31T21:34:24+00:00

I am developing a translator that converts JavaScript source into a target language. I

  • 0

I am developing a translator that converts JavaScript source into a target language. I am trying to implement JavaScript’s Math object in the target language.

If there is a JavaScript implementation of the “Math” object, I can use the translator to obtain the equivalent code in the target language.

I am looking for something like this:

var Math = {
    pow: function(...) {...}
    exp: function(...) {...}
    /* other methods of Math */
}

Is there such an implementation that is available ?
This would help me avoid manually writing the Math object’s code in the target language.

  • 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-31T21:34:25+00:00Added an answer on May 31, 2026 at 9:34 pm

    The V8 implementation of math.js might provide you with some guidance, but of course it’s riddled with placeholders for native function calls. You would have to be able to replace things like %Math_floor(x) with the appropriate standard library based function call in the target language.

    http://code.google.com/p/v8/source/browse/branches/bleeding_edge/src/math.js?spec=svn10758&r=10758

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

Sidebar

Related Questions

I am developing an interpreter of a simple programming language. There are tree-structured dynamic
I'm developing a CodeIgniter based site that will be very multi language heavy. Plan
I'm developing a Custom Action to install the same file into multiple folders(that are
I am developing a simple translator from MathML to Latex, using Lex and Yacc.
I´m developing a software in C# that uses static functions from a C++ .dll
I'm developing a CMS that required i18n support. The translation strings are stored as
I'm developing an application that should support two languages: English and French. However because
I'm developing a Silverlight 4 app that has to live within an existing ASP/HTML
I'm developing an iPhone application and I'm trying to do this: I want an
I am using Google's website translator on a website I am developing. In one

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.