ye laurie

This commit is contained in:
2025-08-14 00:09:44 -06:00
parent 1f8045fc9f
commit 3af656de22

11
c/float.c Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
#include <float.h>
// this showcases floating point innaccuracy due to needing to represent them in binary
void main() {
float ye = 6.28;
printf("%.4f\n", ye);
printf("%.8f\n", ye);
printf("%.12f\n", ye);
}