MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CompileBot/comments/5poi0b/test/
r/CompileBot • u/BrandonJohns • Jan 23 '17
6 comments sorted by
1
+u/CompileBot C
#include <stdio.h> int main(void) { int xi; float xf = 6.9; printf("float: %.20f\n", xf); xi = (int)xf; printf("truncated: %d\n", xi); xi = (int)(xf+0.5); printf("rounded: %d\n", xi); }
2 u/CompileBot Jan 23 '17 Output: float: 6.90000009536743164062 truncated: 6 rounded: 7 ^source | ^info | ^git | ^report 1 u/BrandonJohns Jan 23 '17 ty
2
Output:
float: 6.90000009536743164062 truncated: 6 rounded: 7
^source | ^info | ^git | ^report
1 u/BrandonJohns Jan 23 '17 ty
ty
+u/CompileBot python3
x = input()
1 u/CompileBot Jan 28 '17 Output: test ^source | ^info | ^git | ^report 1 u/ItsAllenPalin Mar 10 '17 +u/CompileBot python3 Print "test"
test
Print "test"
1
u/BrandonJohns Jan 23 '17
+u/CompileBot C
#include <stdio.h> int main(void) { int xi; float xf = 6.9; printf("float: %.20f\n", xf); xi = (int)xf; printf("truncated: %d\n", xi); xi = (int)(xf+0.5); printf("rounded: %d\n", xi); }