Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define PRECISION 1000
- #define f(a) (int)((a-(int)a)*PRECISION)
- #define i(a) (int)(a)
- float fl = 5.456;
- printf("%d.%d\n",i(fl),f(fl));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement