Skip to content

Instantly share code, notes, and snippets.

@AlexDiru
AlexDiru / gist:3959450
Created October 26, 2012 15:31
Extract mantissa and exponent from a float
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
//holds one bit
struct sbit
{
unsigned b : 1;
};
typedef struct sbit BIT;