Skip to content
Snippets Groups Projects
Commit f3188bca authored by Nayoung Kim's avatar Nayoung Kim
Browse files

Fist test code

parent d6f2f9f3
No related branches found
No related tags found
No related merge requests found
a.out 0 → 100755
File added
test.c 0 → 100644
#include <stdio.h>
#include <math.h>
// #### #### #### #### #### #### #### ####
// S 15 . 16
#define FX_Q_NUM 16
#define FX_2_MINUS_16 1.52587890625e-05
int main()
{
int ia;
float fa;
fscanf(stdin, "%d", &ia);
fprintf(stdout, "%d : %f %f \n", ia, (float) ia, (float) ia * powf(2.0f, -16));
fscanf(stdin, "%f", &fa);
fprintf(stdout, "%f : %d %d \n", fa, (int) fa, (int) (fa * powf(2.0f, 16)));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment