Guest User

Untitled

a guest
Sep 28th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. #define ABS(x) ((x)<0?-(x):(x))
  2.  
  3. int test(double f)
  4. {
  5. int fpart = ABS((int)((f - (int)f)*1e6));
  6. return fpart;
  7. }
Add Comment
Please, Sign In to add comment