mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
updated round to support i64 (#3451)
This commit is contained in:
parent
20f6114617
commit
722f191e82
@ -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 New Issue
Block a user