mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Merge 6614b2b739 into 9082b004b6
This commit is contained in:
commit
698a63f75e
2 changed files with 8 additions and 0 deletions
|
|
@ -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#}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue