#include <stdio.h>
#include "show_bytes.h"

int main(){
	
	printf("\nExample 1\n\n");

	short foo = 12345;
	printf("As short: %hi\n", foo);
	printf("Bytes: ");
	show_short(foo);

	float foos = foo;
	printf("As float: %f\n", foos);
	printf("Bytes: ");
	show_float(foos);


	printf("\nExample 2\n\n");

	int foo2 = 3510593;
	printf("As int: %i\n", foo2);
	printf("Bytes: ");
	show_int(foo2);

	float foos2 = foo2;
	printf("As float: %f\n", foos2);
	printf("Bytes: ");
	show_float(foos2);

	printf("\nExample 3\n\n");

	float foos3 = 0.1;
	printf("0.1 = %f\n", foos3);
	printf("0.1 = %.10f\n", foos3);
}
