Advertisement
RuiViana

PIC float to matriz

Jul 21st, 2015
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. void main(void)
  2. {
  3. float test = 00.75;
  4. long value ;
  5. value = (long)(test*100);
  6. char buffer[ ] = {0,0,0,0};
  7. sprintf(buffer, "%d", value);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement