Guest User

Untitled

a guest
Sep 28th, 2017
46
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data