repos / gbc

GBC - Go B Compiler
git clone https://github.com/xplshn/gbc.git

gbc / tests
xplshn  ·  2025-09-10

float32.bx

Bx
 1extrn printf;
 2
 3int main() {
 4   float32 x, y;
 5   x = 1.25;
 6   y = 2.75;
 7   printf("x = %.3f, y = %.3f\n", x, y);
 8   float a, b;
 9   a = 8.50;
10   b = 7.50;
11   printf("a = %.3f, b = %.3f\n", a, b);
12   // X and Y once again
13   printf("x = %.3f, y = %.3f\n", x, y);
14   return (0);
15}