1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-07 09:54:35 +00:00
cc65/test/float/quick.c

26 lines
475 B
C
Raw Normal View History

/*
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <_float.h>
#include <math.h>
unsigned char buf[32];*/
//unsigned char var_uchar;
// float fp2;
float fp1 = 42.0f;
float fp2 = 23;
float fp3 = 33.0;
int main(void)
{
// fp2 = (float)((unsigned char)19);
// var_uchar = (unsigned char)fp2;
// var_uchar = (unsigned char)192.3f;
// printf("fp2 0x%08lx %s (19.9) uchar:%u (19)\n", *((uint32_t*)&fp2), _ftostr(buf, fp2), (int)var_uchar);
}