This commit is contained in:
Zirunis 2025-11-23 22:56:58 +00:00 committed by GitHub
commit 698a63f75e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -1119,6 +1119,10 @@
otherwise the optimizer figures out all the values at compile-time,
which operates in strict mode.</p>
{#code|float_mode_exe.zig#}
{#shell_samp#}$ zig build-exe float_mode_exe.zig -O ReleaseFast
$ ./float_mode_exe
optimized = 0.001
strict = 0.0009765625{#end_shell_samp#}
{#see_also|@setFloatMode|Division by Zero#}
{#header_close#}

View file

@ -10,3 +10,7 @@ pub fn main() void {
}
// syntax
// This file requires the object file of float_mode_obj.zig
// Currently the automatic generation of the langref runs each file independently
// and does therefore not support this use case
// The output for this snippet is written into the langref manually as a workaround