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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:28:10+00:00 2026-06-12T05:28:10+00:00

So what would be the datatype I am looking at. I know AS3 Number

  • 0

So what would be the datatype I am looking at. I know AS3 Number is 64 bit but it is double precision. I am converting code to C++ and since in AS3 it is valid to do this:

var i:Number = 123;
i >> 3; // Yeah shift right a double precision datatype

So in C++ I need now a datatype that is in the integral range of the Number type in AS3 (which is double precision). Please note I am converting and encode/decode functions that were previously used with the AS3 code so I must have the same result.

Thanks in advance.

  • 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-12T05:28:11+00:00Added an answer on June 12, 2026 at 5:28 am

    The AS3 shift operator converts the expression being shifted and the shift amount to 32-bit integers. In C++, you emulate this behavior by casting a double data type to an int and shifting:

    #include <iostream>
    
    int main(int argc, char **argv) {
        double i(91.5);
        int v(static_cast<int>(i) >> 3);
        std::cout << "v = " << v << std::endl; // outputs "v = 11"
        return 0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might be strange, but what I am looking for is how would I
What would be equivalent of Number(4) of Oracle database to MySQL Datatype ?
Well, I know it may sounds basic, but I have literally been looking everywhere
Is it possible to have custom datatype in powershell? I would like to have
I would like to know if there is a variant data type in Delphi
I would like to know your opinion. I created an application, where users create
I would like to know if maybe there are some good solutions to handling
(This post is soliciting personal experiences about storing XML; please share what you know.
I'm looking for a C# integral data type that can hold 32 bit signed
I've posted this on the D newsgroup some months ago, but for some reason,

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.