Skip to content
Permalink
d709efa10f
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (8 sloc) 295 Bytes
#include <iostream>
using namespace std;
int main()
{
unsigned char array[] = {0x00, 0x00, 0x00, 0x20, 0xDB, 0xE2, 0xC4, 0x3F}; //0x3F, 0xC4, 0xE2, 0xDB, 0x20, 0x00, 0x00, 0x00
double doubleVal = *reinterpret_cast<double * const>(array);
cout << doubleVal << endl;
}