mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 06:14:33 +00:00
parent
4d10fbef10
commit
321fec1aa6
1 changed files with 4 additions and 0 deletions
|
|
@ -2284,6 +2284,10 @@ test "float.hexadecimal.precision" {
|
||||||
}
|
}
|
||||||
|
|
||||||
test "float.decimal" {
|
test "float.decimal" {
|
||||||
|
if (builtin.zig_backend == .stage1 and builtin.os.tag == .windows) {
|
||||||
|
// https://github.com/ziglang/zig/issues/12063
|
||||||
|
return error.SkipZigTest;
|
||||||
|
}
|
||||||
try expectFmt("f64: 152314000000000000000000000000", "f64: {d}", .{@as(f64, 1.52314e+29)});
|
try expectFmt("f64: 152314000000000000000000000000", "f64: {d}", .{@as(f64, 1.52314e+29)});
|
||||||
try expectFmt("f32: 0", "f32: {d}", .{@as(f32, 0.0)});
|
try expectFmt("f32: 0", "f32: {d}", .{@as(f32, 0.0)});
|
||||||
try expectFmt("f32: 0", "f32: {d:.0}", .{@as(f32, 0.0)});
|
try expectFmt("f32: 0", "f32: {d:.0}", .{@as(f32, 0.0)});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue