From 722f191e8237638a401747a1b436ec27609b8a04 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Thu, 20 May 2021 13:59:19 -0500 Subject: [PATCH] updated round to support i64 (#3451) --- crates/nu-command/src/commands/math/round.rs | 1 + 1 file changed, 1 insertion(+) 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())