updated round to support i64 (#3451)

This commit is contained in:
Darren Schroeder
2021-05-20 13:59:19 -05:00
committed by GitHub
parent 20f6114617
commit 722f191e82

View File

@ -66,6 +66,7 @@ fn operate(args: CommandArgs) -> Result<OutputStream, ShellError> {
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())