When i was coding i got a problem like: i need to output number which is 2^64 (also 3^64 and others). I have tried unsigned long long int, but it's still not enough (it contains 2^64-1). If anyone know how i can output numbers from 64bits to 128bits, just let me know (btw this task i'm trying to do on C).
How to output number in the range 64 bits to 128 bits ( like 2^64, 3^64, 4^64 etc)?
303 Views Asked by Dynam1k At
1
There are 1 best solutions below
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in 64-BIT
- GDI - Why the printing StartPage() function works in 32 bit but raises an exception in 64 bit?
- GNU AS ASM to bytecode dump
- How do I use .lib to compile and link in c++ builder 11.3 windows 64bits platform?
- Windows 64-bit: Do overlapped MMF windows mean more RAM consumption (doubling the RAM where the file views overlap)?
- Invoke jar from C++ using JNI
- SQLBindCol for long integer value on 64Bit platform?
- Assembly segmentation fault in example code
- PowerShell switch block and values coded in 64 bits
- How can I get a 32-bit output with Python on a 64-bit system?
- Recompiled APK throws error "This release is not compliant with the Google Play 64-bit requirement"
- Porting code that wraps ODBC API to 64 bit questions
- ilink64 Error Fatal: Unable to open file 'VCL.VIRTUALIMAGELIST.O'
- Open and write file in nasm for Windows 64bit
- C display tansparent text on any background
- Problem with quicksort function on arrays of 64 bits integers in C
Related Questions in 128-BIT
- c++ std::cmp_less misbehaving for __int128 depending on standard compiler switch
- wrong multiplication result for __uint128_t result
- IV undefined Error while decrypting AES encrypted video
- 128 bit floating point binary representation error
- Force a comparison to be done in a 128-bit register in C
- 128-bit data type in C#
- Correct way to sum 128bit numbers represented by 4 32bit unsigned integers?
- I want to perform Multiplication and Division of two 128 bit unsigned integers in a system that doesn't contain floats
- Vectorization of multiplying two unsigned 64-bit integers with AVX2?
- How to divide a 128-bit dividend by a 64-bit divisor, where the dividend's bits are all 1's, and where I only need the 64 LSBs of the quotient?
- How to output number in the range 64 bits to 128 bits ( like 2^64, 3^64, 4^64 etc)?
- Unable to compile assembly code with xmmword operand-size using nasm
- Is it possible to perform 128-bit / 64-bit division without branching, in terms of 64-bit division?
- VBA - 128Bit value to 128 checkboxes
- Modulo operator slower than manual implementation?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
First, compile this program:
If the compiler prints an error message about the identifier
int128_t, then your compiler probably does not support integers wider than 64 bits, regardless of what the type name is.In that case, you have at least three choices:
doubleorlong doublefloating-point, as inprintf("%g\n", pow(2, 64));.uint32_tas a “digit” instead of a single decimal digit. Or you can implement them using single decimal digits, if you prefer. (For example, twouint32_tnumbers can be converted touint64_tand multiplied to make a 64-bit product which you then split into oneuint32_tdigit to be kept in the current position and oneuint32_tdigit to be carried to the next position.)