We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e5f430 commit d49c549Copy full SHA for d49c549
1 file changed
crates/luars/src/stdlib/string/string_format.rs
@@ -655,7 +655,7 @@ fn format_sci(
655
l: &mut LuaState,
656
) -> LuaResult<()> {
657
let num = get_num(arg, l).map_err(|e| l.error(e))?;
658
- let precision = spec.precision.map(|p| if p == 0 { 6 } else { p });
+ let precision = spec.precision;
659
660
// Format the number
661
let mut result = if let Some(prec) = precision {
0 commit comments