diff --git a/crates/nu-command/src/commands/math/round.rs b/crates/nu-command/src/commands/math/round.rs index 0201b3bd42..1ce68450ca 100644 --- a/crates/nu-command/src/commands/math/round.rs +++ b/crates/nu-command/src/commands/math/round.rs @@ -66,6 +66,7 @@ fn operate(args: CommandArgs) -> Result { UntaggedValue::Primitive(Primitive::Decimal(val)) => { round_big_decimal(val, precision.into()) } + UntaggedValue::Primitive(Primitive::Int(val)) => UntaggedValue::int(val).into(), other => round_default(other), }); Ok(mapped.to_output_stream())