MatteoTosato87

KB -> KiB

Jan 5th, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char **argv)
  5. {
  6.         if(argc>1) {
  7.                 printf("%f KB -> %f KiB\n",
  8.                         atof(argv[1]), atof(argv[1])*1000/1024);
  9.         }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment