mirror of
https://github.com/nushell/nushell
synced 2025-01-14 14:14:13 +00:00
updated round to support i64 (#3451)
This commit is contained in:
parent
20f6114617
commit
722f191e82
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue