diff --git a/crates/cubecl-wgpu/src/compiler/wgsl/base.rs b/crates/cubecl-wgpu/src/compiler/wgsl/base.rs index cba5e521..4f7ea52e 100644 --- a/crates/cubecl-wgpu/src/compiler/wgsl/base.rs +++ b/crates/cubecl-wgpu/src/compiler/wgsl/base.rs @@ -259,8 +259,8 @@ impl Display for Variable { FloatKind::BF16 => { todo!("Unsupported") } - FloatKind::F32 => f.write_fmt(format_args!("{:.9}f", *val as f32)), - FloatKind::F64 => f.write_fmt(format_args!("{:.17}f", { *val })), + FloatKind::F32 => f.write_fmt(format_args!("{}f", *val as f32)), + FloatKind::F64 => f.write_fmt(format_args!("{}f", { *val })), }, ConstantScalarValue::UInt(val) => f.write_fmt(format_args!("{}u", *val as u32)), ConstantScalarValue::Bool(val) => f.write_fmt(format_args!("{}", val)),