mirror of
https://github.com/cc65/cc65.git
synced 2024-11-03 10:07:02 +00:00
26 lines
475 B
C
26 lines
475 B
C
/*
|
|
#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);
|
|
|
|
}
|