mirror of
https://github.com/dborth/fceugx.git
synced 2024-11-05 00:45:06 +01:00
25 lines
251 B
C
25 lines
251 B
C
|
#include <stdio.h>
|
||
|
|
||
|
#define MAX 512
|
||
|
|
||
|
main()
|
||
|
{
|
||
|
char buf[256];
|
||
|
int count=0;
|
||
|
|
||
|
while(fgets(buf,256,stdin)>0)
|
||
|
{
|
||
|
double p;
|
||
|
|
||
|
if(sscanf(buf,"%lf",&p)==1)
|
||
|
{
|
||
|
p*=65536*16;
|
||
|
printf("%ld,\n",(long)p);
|
||
|
count++;
|
||
|
if(count==MAX) break;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|